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

     1  load("//tools/go_generics:defs.bzl", "go_template")
     2  
     3  package(
     4      default_visibility = ["//:sandbox"],
     5      licenses = ["notice"],
     6  )
     7  
     8  go_template(
     9      name = "generic_range",
    10      srcs = ["range.go"],
    11      types = [
    12          "T",
    13      ],
    14  )
    15  
    16  go_template(
    17      name = "generic_set",
    18      srcs = [
    19          "set.go",
    20          "set_state.go",
    21      ],
    22      opt_consts = [
    23          "minDegree",
    24          # trackGaps must either be 0 or 1.
    25          "trackGaps",
    26      ],
    27      types = [
    28          "Key",
    29          "Range",
    30          "Value",
    31          "Functions",
    32      ],
    33  )