github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/waiter/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  load("//tools/go_generics:defs.bzl", "go_template_instance")
     3  
     4  package(licenses = ["notice"])
     5  
     6  go_template_instance(
     7      name = "waiter_list",
     8      out = "waiter_list.go",
     9      package = "waiter",
    10      prefix = "waiter",
    11      template = "//pkg/ilist:generic_list",
    12      types = {
    13          "Element": "*Entry",
    14          "Linker": "*Entry",
    15      },
    16  )
    17  
    18  go_library(
    19      name = "waiter",
    20      srcs = [
    21          "waiter.go",
    22          "waiter_list.go",
    23      ],
    24      visibility = ["//visibility:public"],
    25      deps = ["//pkg/sync"],
    26  )
    27  
    28  go_test(
    29      name = "waiter_test",
    30      size = "small",
    31      srcs = [
    32          "waiter_test.go",
    33      ],
    34      library = ":waiter",
    35  )