- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for dropgodebug (0.13 sec)
-
src/cmd/go/internal/workcmd/edit.go
base.Fatalf("go: -godebug=%s: %v", arg, err) } }) } // flagEditworkDropGodebug implements the -dropgodebug flag. func flagEditworkDropGodebug(arg string) { workedits = append(workedits, func(f *modfile.WorkFile) { if err := f.DropGodebug(arg); err != nil { base.Fatalf("go: -dropgodebug=%s: %v", arg, err) } }) } // flagEditworkUse implements the -use flag. func flagEditworkUse(arg string) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 11K bytes - Viewed (0) -
src/cmd/go/testdata/script/work_edit.txt
cmp stdout go.work.want_json # go work edit -godebug cd $WORK/g cp go.work.start go.work go work edit -godebug key=value cmpenv go.work go.work.edit go work edit -dropgodebug key2 cmpenv go.work go.work.edit go work edit -dropgodebug key cmpenv go.work go.work.start # go work edit -print -fmt env GOWORK=$GOPATH/src/unformatted go work edit -print -fmt cmp stdout $GOPATH/src/formatted -- m/go.mod --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 2.6K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/edit.go
base.Fatalf("go: -godebug=%s: %v", arg, err) } }) } // flagDropGodebug implements the -dropgodebug flag. func flagDropGodebug(arg string) { edits = append(edits, func(f *modfile.File) { if err := f.DropGodebug(arg); err != nil { base.Fatalf("go: -dropgodebug=%s: %v", arg, err) } }) } // flagRequire implements the -require flag. func flagRequire(arg string) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 17.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_edit.txt
cmpenv go.mod go.mod.edit # go mod edit -godebug cd $WORK/g cp go.mod.start go.mod go mod edit -godebug key=value cmpenv go.mod go.mod.edit go mod edit -dropgodebug key2 cmpenv go.mod go.mod.edit go mod edit -dropgodebug key cmpenv go.mod go.mod.start -- x.go -- package x -- w/w.go -- package w -- $WORK/go.mod.init -- module x.x/y/z go $goversion
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 6.6K 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 }
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/vendor/golang.org/x/mod/modfile/rule.go
moveReq(r, lastIndirectBlock) } else { moveReq(r, lastDirectBlock) } f.Require = append(f.Require, r) } } f.SortBlocks() } func (f *File) DropGodebug(key string) error { for _, g := range f.Godebug { if g.Key == key { g.Syntax.markRemoved() *g = Godebug{} } } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:34:56 UTC 2024 - 46.5K bytes - Viewed (0) -
src/cmd/go/alldocs.go
// The -module flag changes the module's path (the go.mod file's module line). // // The -godebug=key=value flag adds a godebug key=value line, // replacing any existing godebug lines with the given key. // // The -dropgodebug=key flag drops any existing godebug lines // with the given key. // // The -require=path@version and -droprequire=path flags // add and drop a requirement on the given module path and version.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:54:28 UTC 2024 - 142.4K bytes - Viewed (0)