various tools for the Go programming language
Project homepage: https://pkg.go.dev/golang.org/x/tools/cmd
Description
This package provides the golang.org/x/tools module, comprising various
tools and packages mostly for static analysis of Go programs, some of
which are listed below.
- callgraph: prints the call graph of a Go program.
- deadcode: reports unreachable functions.
- digraph: utility for manipulating directed graphs in textual notation.
- goimports: formats a Go program like go fmt and additionally inserts
import statements for any packages required by the file after it is
edited.
- stringer: generates declarations (including a String method) for
"enum" types.
- present: runs a web server that presents slide and article files from
- toolstash: simplifies working with multiple versions of the Go toolchain.
the current directory.
Package information
- Ports path
- devel/go-tools
- Package architecture
- amd64
- Maintainer
- The OpenBSD ports mailing-list <ports@openbsd.org>
- Categories
- devel, lang/go
- Available flavors
- None listed
- Only for architectures
- aarch64, amd64, arm, i386, riscv64
Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.
Direct dependencies
Runtime
Build
OpenBSD README
This README contains unresolved ports variables; replace them before using its commands.
+-----------------------------------------------------------------------
| Running go-tools on OpenBSD
+-----------------------------------------------------------------------
When started via the rc script, by default godoc will only show
documentation for the go distribution itself. If serving documentation
for packages in other workspaces is desired, the GOPATH environment
variable should be set. This can be achieved without affecting other
daemons by creating a separate login class for the godoc rc script.
Example login.conf(5) fragment:
godoc:\
:setenv=GOPATH=${TRUEPREFIX}/go-pkg:\
:tc=daemon:
(Refer to getcap(3), login.conf(5) and rc.d(8) for details.)