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: "execerrdot", Package: "os/exec"},
30 {Name: "gocachehash", Package: "cmd/go"},
31 {Name: "gocachetest", Package: "cmd/go"},
32 {Name: "gocacheverify", Package: "cmd/go"},
33 {Name: "gotypesalias", Package: "go/types", Changed: 23, Old: "0"},
34 {Name: "http2client", Package: "net/http"},
35 {Name: "http2debug", Package: "net/http", Opaque: true},
36 {Name: "http2server", Package: "net/http"},
37 {Name: "httplaxcontentlength", Package: "net/http", Changed: 22, Old: "1"},
38 {Name: "httpmuxgo121", Package: "net/http", Changed: 22, Old: "1"},
39 {Name: "httpservecontentkeepheaders", Package: "net/http", Changed: 23, Old: "1"},
40 {Name: "installgoroot", Package: "go/build"},
41 {Name: "jstmpllitinterp", Package: "html/template", Opaque: true},
42
43 {Name: "multipartmaxheaders", Package: "mime/multipart"},
44 {Name: "multipartmaxparts", Package: "mime/multipart"},
45 {Name: "multipathtcp", Package: "net", Changed: 24, Old: "0"},
46 {Name: "netdns", Package: "net", Opaque: true},
47 {Name: "netedns0", Package: "net", Changed: 19, Old: "0"},
48 {Name: "panicnil", Package: "runtime", Changed: 21, Old: "1"},
49 {Name: "randautoseed", Package: "math/rand"},
50 {Name: "randseednop", Package: "math/rand", Changed: 24, Old: "0"},
51 {Name: "tarinsecurepath", Package: "archive/tar"},
52 {Name: "tls10server", Package: "crypto/tls", Changed: 22, Old: "1"},
53 {Name: "tls3des", Package: "crypto/tls", Changed: 23, Old: "1"},
54 {Name: "tlskyber", Package: "crypto/tls", Changed: 23, Old: "0", Opaque: true},
55 {Name: "tlsmaxrsasize", Package: "crypto/tls"},
56 {Name: "tlsrsakex", Package: "crypto/tls", Changed: 22, Old: "1"},
57 {Name: "tlsunsafeekm", Package: "crypto/tls", Changed: 22, Old: "1"},
58 {Name: "winreadlinkvolume", Package: "os", Changed: 22, Old: "0"},
59 {Name: "winsymlink", Package: "os", Changed: 22, Old: "0"},
60 {Name: "x509keypairleaf", Package: "crypto/tls", Changed: 23, Old: "0"},
61 {Name: "x509negativeserial", Package: "crypto/x509", Changed: 23, Old: "1"},
62 {Name: "x509sha1", Package: "crypto/x509"},
63 {Name: "x509usefallbackroots", Package: "crypto/x509"},
64 {Name: "x509usepolicies", Package: "crypto/x509"},
65 {Name: "zipinsecurepath", Package: "archive/zip"},
66 }
67
68
69 func Lookup(name string) *Info {
70
71 lo := 0
72 hi := len(All)
73 for lo < hi {
74 m := int(uint(lo+hi) >> 1)
75 mid := All[m].Name
76 if name == mid {
77 return &All[m]
78 }
79 if name < mid {
80 hi = m
81 } else {
82 lo = m + 1
83 }
84 }
85 return nil
86 }
87
View as plain text