Module GoMod
Provides classes for working with go.mod files.
Import path
import semmle.go.GoModImports
| go | Provides classes for working with Go programs. |
Classes
| GoModCommentBlock | A top-level block of comments separate from any rule. |
| GoModExcludeLine | A line that declares a dependency version to exclude, for example |
| GoModExpr | An expression in a go.mod file, which is used to declare dependencies. |
| GoModFile | A go.mod file. |
| GoModGoLine | A line that declares the Go version to be used, for example |
| GoModLParen | A left parenthesis for a line block. |
| GoModLine | A single line of tokens. |
| GoModLineBlock | A factored block of lines, for example: |
| GoModModuleLine | A line that contains the module’s package path, for example |
| GoModRParen | A right parenthesis for a line block. |
| GoModReplaceLine | A line that specifies a dependency to use instead of another one, for example |
| GoModRequireLine | A line that declares a requirement, for example |