Provides classes for working with go.mod files.
Import pathimport semmle.go.GoMod
Provides classes for working with Go programs.
Classes GoModCommentBlockA top-level block of comments separate from any rule.
GoModExcludeLineA line that declares a dependency version to exclude, for example exclude "github.com/github/codeql-go" v1.2.3
.
An expression in a go.mod file, which is used to declare dependencies.
GoModFileA go.mod file.
GoModGoLineA line that declares the Go version to be used, for example go 1.14
.
A left parenthesis for a line block.
GoModLineA single line of tokens.
GoModLineBlockA factored block of lines, for example: require ( "github.com/github/codeql-go" v1.2.3 "golang.org/x/tools" v3.2.1 )
A line that contains the module’s package path, for example module github.com/github/codeql-go
.
A right parenthesis for a line block.
GoModReplaceLineA line that specifies a dependency to use instead of another one, for example replace "golang.org/x/tools" => "github.com/golang/tools" v1.2.3
.
A line that declares a requirement, for example require "github.com/github/codeql-go" v1.2.3
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4