- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for DropGoStmt (0.14 sec)
-
src/cmd/vendor/golang.org/x/mod/modfile/work.go
} else { f.Toolchain.Name = name f.Syntax.updateLine(f.Toolchain.Syntax, "toolchain", name) } return nil } // DropGoStmt deletes the go statement from the file. func (f *WorkFile) DropGoStmt() { if f.Go != nil { f.Go.Syntax.markRemoved() f.Go = nil } } // DropToolchainStmt deletes the toolchain statement from the file.
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/internal/workcmd/edit.go
} workFile, err := modload.ReadWorkFile(gowork) if err != nil { base.Fatalf("go: errors parsing %s:\n%s", base.ShortPath(gowork), err) } if *editGo == "none" { workFile.DropGoStmt() } else if *editGo != "" { if err := workFile.AddGoStmt(*editGo); err != nil { base.Fatalf("go: internal error: %v", err) } } if *editToolchain == "none" { workFile.DropToolchainStmt()
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/internal/modcmd/edit.go
if err != nil { base.Fatalf("go: errors parsing %s:\n%s", base.ShortPath(gomod), err) } if *editModule != "" { modFile.AddModuleStmt(*editModule) } if *editGo == "none" { modFile.DropGoStmt() } else if *editGo != "" { if err := modFile.AddGoStmt(*editGo); err != nil { base.Fatalf("go: internal error: %v", err) } } if *editToolchain == "none" { modFile.DropToolchainStmt()
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/vendor/golang.org/x/mod/modfile/rule.go
} } else { f.Go.Version = version f.Syntax.updateLine(f.Go.Syntax, "go", version) } return nil } // DropGoStmt deletes the go statement from the file. func (f *File) DropGoStmt() { if f.Go != nil { f.Go.Syntax.markRemoved() f.Go = nil } } // DropToolchainStmt deletes the toolchain statement from the file.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:34:56 UTC 2024 - 46.5K bytes - Viewed (0)