- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 759 for Godebug (0.14 sec)
-
src/internal/godebug/godebug.go
// infeasible, in which case the internal/godebugs table entry must set // Opaque: true, and the documentation in doc/godebug.md should // mention that metrics are unavailable. // // Conventionally, the global variable representing a godebug is named // for the godebug itself, with no case changes: // // var gotypesalias = godebug.New("gotypesalias") // this // var goTypesAlias = godebug.New("gotypesalias") // NOT THIS //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 14:19:39 UTC 2024 - 9.4K bytes - Viewed (0) -
doc/godebug.md
The `godebug` lines in the previous example would be written: //go:debug default=go1.21 //go:debug panicnil=1 //go:debug asynctimerchan=0 Starting in Go 1.21, the Go toolchain treats a `//go:debug` directive with an unrecognized GODEBUG setting as an invalid program. Programs with more than one `//go:debug` line for a given setting are also treated as invalid. (Older toolchains ignore `//go:debug` directives entirely.)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 15.9K bytes - Viewed (0) -
src/cmd/go/internal/load/godebug.go
return "", "", fmt.Errorf("missing key=value") } return "", "", ErrNotGoDebug } k, v, ok := strings.Cut(strings.TrimSpace(text[i:]), "=") if !ok { return "", "", fmt.Errorf("missing key=value") } if err := modload.CheckGodebug("//go:debug setting", k, v); err != nil { return "", "", err } return k, v, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 3.1K bytes - Viewed (0) -
src/cmd/go/testdata/script/work_errors_pos.txt
use foo use foo -- go.work.badgodebug.txt -- godebug foo=1 -- go.work.unparsable.txt -- notadirective -- go.work.firstlineerr.txt -- godebug bar=1 -- go.work.firsterrlisted.txt -- godebug baz=1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:36:30 UTC 2024 - 926 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/work.go
line := f.Syntax.addLine(nil, "godebug", key+"="+value) g := &Godebug{ Key: key, Value: value, Syntax: line, } f.Godebug = append(f.Godebug, g) } func (f *WorkFile) DropGodebug(key string) error { for _, g := range f.Godebug { if g.Key == key { g.Syntax.markRemoved() *g = Godebug{} } } return nil } func (f *WorkFile) AddUse(diskPath, modulePath string) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:34:56 UTC 2024 - 7.7K bytes - Viewed (0) -
src/cmd/go/testdata/script/godebug_default.txt
replace q => ./q require rsc.io/panicnil v1.0.0 -- p.go -- //go:debug randautoseed=0 package main func main() { panic(nil) } -- godebug.go -- //go:build godebug //go:debug default=go1.20 //go:debug asynctimerchan=0 package main -- godebugbad.go -- //go:build godebugbad //go:debug default=go1.20 asynctimerchan=0 package main -- q/go.mod --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 3.5K bytes - Viewed (0) -
src/internal/godebugs/table.go
// license that can be found in the LICENSE file. // Package godebugs provides a table of known GODEBUG settings, // for use by a variety of other packages, including internal/godebug, // runtime, runtime/metrics, and cmd/go/internal/load. package godebugs // An Info describes a single known GODEBUG setting. type Info struct { Name string // name of the setting ("panicnil")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:58:43 UTC 2024 - 3.6K bytes - Viewed (0) -
src/internal/godebugs/godebugs_test.go
t.Errorf("Name=%s has Old, missing Changed", info.Name) } if !strings.Contains(doc, "`"+info.Name+"`") { t.Errorf("Name=%s not documented in doc/godebug.md", info.Name) } if !info.Opaque && !incs[info.Name] { t.Errorf("Name=%s missing IncNonDefault calls; see 'go doc internal/godebug'", info.Name) } } } var incNonDefaultRE = regexp.MustCompile(`([\pL\p{Nd}_]+)\.IncNonDefault\(\)`)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 14:19:39 UTC 2024 - 2.3K bytes - Viewed (0) -
src/internal/godebug/godebug_test.go
} for _, tt := range tests { t.Setenv("GODEBUG", tt.godebug) got := tt.setting.Value() if got != tt.want { t.Errorf("get(%q, %q) = %q; want %q", tt.godebug, tt.setting.Name(), got, tt.want) } } } func TestMetrics(t *testing.T) { const name = "http2client" // must be a real name so runtime will accept it var m [1]metrics.Sample m[0].Name = "/godebug/non-default-behavior/" + name + ":events"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 4K bytes - Viewed (0) -
src/net/http/doc.go
[Server.TLSNextProto] (for servers) to a non-nil, empty map. Alternatively, the following GODEBUG settings are currently supported: GODEBUG=http2client=0 # disable HTTP/2 client support GODEBUG=http2server=0 # disable HTTP/2 server support GODEBUG=http2debug=1 # enable verbose HTTP/2 debug logs GODEBUG=http2debug=2 # ... even more verbose, with frame dumps
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 3.4K bytes - Viewed (0)