---
name: "go-doc"
section: "1"
platform: "linux"
package: "golang-go"
version: "2:1.0.2-1.1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/go-doc"
---

# go-doc(1)

tool for managing Go source code

## NAME

go - tool for managing Go source code

## SYNOPSIS

**go doc** \[-n\] \[-x\] \[ *packages* \]

## DESCRIPTION

Doc runs the godoc command on the packages named by the import paths.

For more about godoc, see 'godoc godoc'.

For more about specifying packages, see [**go-packages**(7)](/go-packages/7.md).

To run godoc with specific options, run godoc itself.

## OPTIONS

- **-n**

  The -n flag causes tool to print the command that would be executed but not execute it.

- **-x**

  The -x flag causes clean to print remove commands as it executes them.

## SEE ALSO

[**godoc**(1)](/godoc/1.md).

## AUTHOR

This manual page was written by Michael Stapelberg \<stapelberg@debian.org\>, for the Debian project (and may be used by others).
