# Functions
AutoQuote returns s or, if quoting is required for s to appear in a go.mod, the quotation of s.
Format returns a go.mod file as a byte slice, formatted in standard style.
IsDirectoryPath reports whether the given path should be interpreted as a directory path.
ModulePath returns the module path from the gomod file text.
MustQuote reports whether s must be quoted in order to appear as a single token in a go.mod line.
Parse parses and returns a go.mod file.
ParseLax is like Parse but ignores unknown statements.
ParseWork parses and returns a go.work file.
# Variables
No description provided by the author
Toolchains must be named beginning with `go1`, like "go1.20.3" or "go1.20.3-gccgo".
# Structs
A Comment represents a single // comment.
A CommentBlock represents a top-level block of comments separate from any rule.
Comments collects the comments associated with an expression.
No description provided by the author
An Exclude is a single exclude statement.
A File is the parsed, interpreted form of a go.mod file.
A FileSyntax represents an entire go.mod file.
A Go is the go statement.
A Godebug is a single godebug key=value statement.
A Line is a single line of tokens.
A LineBlock is a factored block of lines, like
require ( "x" "y" ).
An LParen represents the beginning of a parenthesized line block.
A Module is the module statement.
A Position describes an arbitrary source position in a file, including the file, line, column, and byte offset.
A Replace is a single replace statement.
A Require is a single require statement.
A Retract is a single retract statement.
An RParen represents the end of a parenthesized line block.
A Tool is a single tool statement.
A Toolchain is the toolchain statement.
A Use is a single directory statement.
A VersionInterval represents a range of versions with upper and lower bounds.
A WorkFile is the parsed, interpreted form of a go.work file.
# Interfaces
An Expr represents an input element.