1
2
3
4
5
6
7
8 package godebugs
9
10
11 type Info struct {
12 Name string
13 Package string
14 Changed int
15 Old string
16 Opaque bool
17 }
18
19
20
21
22
23
24
25
26
27 var All = []Info{
28 {Name: "asynctimerchan", Package: "time", Changed: 23, Old: "1"},
29 {Name: "dataindependenttiming", Package: "crypto/subtle", Opaque: true},
30 {Name: "execerrdot", Package: "os/exec"},
31 {Name: "fips140", Package: "crypto/fips140", Opaque: true},
32 {Name: "gocachehash", Package: "cmd/go"},
33 {Name: "gocachetest", Package: "cmd/go"},
34 {Name: "gocacheverify", Package: "cmd/go"},
35 {Name: "gotestjsonbuildtext", Package: "cmd/go", Changed: 24, Old: "1"},
36 {Name: "gotypesalias", Package: "go/types", Changed: 23, Old: "0"},
37 {Name: "http2client", Package: "net/http"},
38 {Name: "http2debug", Package: "net/http", Opaque: true},
39 {Name: "http2server", Package: "net/http"},
40 {Name: "httplaxcontentlength", Package: "net/http", Changed: 22, Old: "1"},
41 {Name: "httpmuxgo121", Package: "net/http", Changed: 22, Old: "1"},
42 {Name: "httpservecontentkeepheaders", Package: "net/http", Changed: 23, Old: "1"},
43 {Name: "installgoroot", Package: "go/build"},
44 {Name: "jstmpllitinterp", Package: "html/template", Opaque: true},
45
46 {Name: "multipartmaxheaders", Package: "mime/multipart"},
47 {Name: "multipartmaxparts", Package: "mime/multipart"},
48 {Name: "multipathtcp", Package: "net", Changed: 24, Old: "0"},
49 {Name: "netdns", Package: "net", Opaque: true},
50 {Name: "netedns0", Package: "net", Changed: 19, Old: "0"},
51 {Name: "panicnil", Package: "runtime", Changed: 21, Old: "1"},
52 {Name: "randautoseed", Package: "math/rand"},
53 {Name: "randseednop", Package: "math/rand", Changed: 24, Old: "0"},
54 {Name: "rsa1024min", Package: "crypto/rsa", Changed: 24, Old: "0"},
55 {Name: "tarinsecurepath", Package: "archive/tar"},
56 {Name: "tls10server", Package: "crypto/tls", Changed: 22, Old: "1"},
57 {Name: "tls3des", Package: "crypto/tls", Changed: 23, Old: "1"},
58 {Name: "tlsmaxrsasize", Package: "crypto/tls"},
59 {Name: "tlsmlkem", Package: "crypto/tls", Changed: 24, Old: "0", Opaque: true},
60 {Name: "tlsrsakex", Package: "crypto/tls", Changed: 22, Old: "1"},
61 {Name: "tlsunsafeekm", Package: "crypto/tls", Changed: 22, Old: "1"},
62 {Name: "winreadlinkvolume", Package: "os", Changed: 23, Old: "0"},
63 {Name: "winsymlink", Package: "os", Changed: 23, Old: "0"},
64 {Name: "x509keypairleaf", Package: "crypto/tls", Changed: 23, Old: "0"},
65 {Name: "x509negativeserial", Package: "crypto/x509", Changed: 23, Old: "1"},
66 {Name: "x509rsacrt", Package: "crypto/x509", Changed: 24, Old: "0"},
67 {Name: "x509usefallbackroots", Package: "crypto/x509"},
68 {Name: "x509usepolicies", Package: "crypto/x509", Changed: 24, Old: "0"},
69 {Name: "zipinsecurepath", Package: "archive/zip"},
70 }
71
72
73 func Lookup(name string) *Info {
74
75 lo := 0
76 hi := len(All)
77 for lo < hi {
78 m := int(uint(lo+hi) >> 1)
79 mid := All[m].Name
80 if name == mid {
81 return &All[m]
82 }
83 if name < mid {
84 hi = m
85 } else {
86 lo = m + 1
87 }
88 }
89 return nil
90 }
91
View as plain text