Source File
table.go
Belonging Package
golang.org/x/net/publicsuffix
// generated by go run gen.go; DO NOT EDITpackage publicsuffiximport _const version = "publicsuffix.org's public_suffix_list.dat, git revision d6c92f1bbb7433e5db7b8405c25d4035fb8ff376 (2026-02-06T07:36:33Z)"const (nodesBits = 40nodesBitsChildren = 10nodesBitsICANN = 1nodesBitsTextOffset = 16nodesBitsTextLength = 6childrenBitsWildcard = 1childrenBitsNodeType = 2childrenBitsHi = 14childrenBitsLo = 14)const (nodeTypeNormal = 0nodeTypeException = 1nodeTypeParentOnly = 2)// numTLD is the number of top level domains.const numTLD = 1450// text is the combined text of all labels.////go:embed data/textvar text string// nodes is the list of nodes. Each node is represented as a 40-bit integer,// which encodes the node's children, wildcard bit and node type (as an index// into the children array), ICANN bit and text.//// The layout within the node, from MSB to LSB, is://// [ 7 bits] unused// [10 bits] children index// [ 1 bits] ICANN bit// [16 bits] text index// [ 6 bits] text length////go:embed data/nodesvar nodes uint40String// children is the list of nodes' children, the parent's wildcard bit and the// parent's node type. If a node has no children then their children index// will be in the range [0, 6), depending on the wildcard bit and node type.//// The layout within the uint32, from MSB to LSB, is://// [ 1 bits] unused// [ 1 bits] wildcard bit// [ 2 bits] node type// [14 bits] high nodes index (exclusive) of children// [14 bits] low nodes index (inclusive) of children////go:embed data/childrenvar children uint32String// max children 935 (capacity 1023)// max text offset 32332 (capacity 65535)// max text length 31 (capacity 63)// max hi 10533 (capacity 16383)// max lo 10528 (capacity 16383)
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |