gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/gohacks/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(
     4      default_applicable_licenses = ["//:license"],
     5      licenses = ["notice"],
     6  )
     7  
     8  go_library(
     9      name = "gohacks",
    10      srcs = [
    11          "linkname_go113_unsafe.go",
    12          "noescape_unsafe.go",
    13          "slice_go113_unsafe.go",
    14          "slice_go120_unsafe.go",
    15          "string_go113_unsafe.go",
    16          "string_go120_unsafe.go",
    17      ],
    18      stateify = False,
    19      visibility = ["//:sandbox"],
    20  )
    21  
    22  go_test(
    23      name = "gohacks_test",
    24      size = "small",
    25      srcs = [
    26          "gohacks_test.go",
    27          "string_test.go",
    28      ],
    29      library = ":gohacks",
    30      deps = ["@org_golang_x_sys//unix:go_default_library"],
    31  )