- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ParseWork (0.09 sec)
-
src/cmd/vendor/golang.org/x/mod/modfile/work.go
Syntax *Line } // ParseWork parses and returns a go.work file. // // file is the name of the file, used in positions and errors. // // data is the content of the file. // // fix is an optional function that canonicalizes module versions. // If fix is nil, all module versions must be canonical ([module.CanonicalVersion] // must return the same string).
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/modload/init.go
path = base.ShortPath(path) // use short path in any errors workData, err := fsys.ReadFile(path) if err != nil { return nil, fmt.Errorf("reading go.work: %w", err) } f, err := modfile.ParseWork(path, workData, nil) if err != nil { return nil, fmt.Errorf("errors parsing go.work:\n%w", err) } if f.Go != nil && gover.Compare(f.Go.Version, gover.Local()) > 0 && cfg.CmdName != "work edit" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:36:30 UTC 2024 - 69.8K bytes - Viewed (0)