Home

The devel/go-tools port

go-tools-0.30.0v0 – various tools for the Go programming language (cvsweb github mirror)

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.
- godoc: extracts and generates documentation for Go programs.
- 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. 
WWW: https://pkg.go.dev/golang.org/x/tools/cmd

Readme

+-----------------------------------------------------------------------
| Running ${PKGSTEM} 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.)

Maintainer

The OpenBSD ports mailing-list

Only for arches

aarch64 amd64 arm i386 riscv64

Categories

devel lang/go

Build dependencies

Run dependencies

Files

Search