Documentation
¶
Overview ¶
Package tools pins tool dependencies for the public/sdk module.
This package uses blank imports with a build tag to ensure that tool dependencies are tracked in go.mod and go.sum without being included in the final binary. To use the tools, build with the tools tag:
go build -tags tools ./hack/...
Example ¶
Example demonstrates the purpose of the tools package.
The tools package pins tool dependencies for the public/sdk module so they appear in go.mod and go.sum. Build with the tools tag to include them:
go build -tags tools ./hack/...
package main
import ()
func main() {
// This package has no callable API. It uses blank imports under the
// //go:build tools constraint to track tool dependencies in the module.
}
Output:
Click to show internal directories.
Click to hide internal directories.