golang.org/x/mod/modfile.FileSyntax.addLine (method)
8 uses
golang.org/x/mod/modfile (current package)
read.go#L104: func (x *FileSyntax) addLine(hint Expr, tokens ...string) *Line {
rule.go#L102: Syntax: f.Syntax.addLine(nil, "module", AutoQuote(path)),
rule.go#L728: Syntax: f.Syntax.addLine(hint, "go", version),
rule.go#L759: line := f.Syntax.addLine(nil, "require", AutoQuote(path), vers)
rule.go#L846: f.Exclude = append(f.Exclude, &Exclude{Mod: module.Version{Path: path, Version: vers}, Syntax: f.Syntax.addLine(hint, "exclude", AutoQuote(path), vers)})
rule.go#L892: f.Replace = append(f.Replace, &Replace{Old: old, New: new, Syntax: f.Syntax.addLine(hint, tokens...)})
rule.go#L912: r.Syntax = f.Syntax.addLine(nil, "retract", AutoQuote(vi.Low))
rule.go#L914: r.Syntax = f.Syntax.addLine(nil, "retract", "[", AutoQuote(vi.Low), ",", AutoQuote(vi.High), "]")
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |