Documentation ¶
Overview ¶
Package gotool provides access to various helpful command line go tools, like go list etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = false
Debug is a global flag, which is only used by the command line program to track errors down.
Functions ¶
func BuildWasm ¶
BuildWasm builds an idiomatic wasm go module. The wasm main entry point must be defined at cmd/wasm. The output file is forwarded.
func ModTidy ¶
ModTidy invokes go mod tidy in the given directory. It will clean up deps and download their source. See also https://golang.org/ref/mod#go-mod-tidy.
Types ¶
type LDFLAGS ¶
type LDFLAGS struct { // X is to inject variables at compilation/linking time. X []string }
LDFLAGS represent the go linker flags.
type Module ¶
type Module struct { Path string // Path is the module import path or the module name Main bool // Main tells whether this module is the actual main module Dir string // Dir is the local folder, where the actual source code resides Version string // Version is usually something like v1.2.3 or v0.0.0-20201210172659-1ccebcf04a20 Replace struct { Dir string // Dir is the actual local replacement directory } }
A Module describes the anatomy of Go Module.
Click to show internal directories.
Click to hide internal directories.