118 lines
3.7 KiB
Python
118 lines
3.7 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "lib",
|
|
srcs = [
|
|
"defs.go",
|
|
"ftime_bsd.go",
|
|
"ftime_unix.go",
|
|
"lib.go",
|
|
],
|
|
importpath = "git.wntrmute.dev/kyle/goutils/lib",
|
|
visibility = ["//visibility:public"],
|
|
deps = select({
|
|
"@io_bazel_rules_go//go/platform:android_386": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:android_amd64": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:android_arm": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:android_arm64": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:darwin_386": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:darwin_amd64": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:freebsd_386": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:freebsd_amd64": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:freebsd_arm": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:freebsd_arm64": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:ios_amd64": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux_386": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux_amd64": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux_arm": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux_arm64": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux_mips": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux_mips64": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux_mips64le": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux_mipsle": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux_ppc64": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux_ppc64le": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux_riscv64": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux_s390x": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:netbsd_386": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:netbsd_amd64": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:netbsd_arm": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:netbsd_arm64": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:openbsd_386": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:openbsd_amd64": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:openbsd_arm": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:openbsd_arm64": [
|
|
"@org_golang_x_sys//unix",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
)
|
|
|
|
go_test(
|
|
name = "lib_test",
|
|
srcs = ["lib_test.go"],
|
|
embed = [":lib"],
|
|
deps = ["//assert"],
|
|
size = "small",
|
|
)
|