Help us shape the future of Go! Take the 2026 Go Developer Survey

tools

package
v0.1.341 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

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.
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL