annotatego

command module
v0.0.0-...-bf21168 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: LGPL-3.0 Imports: 12 Imported by: 0

README

annotatego

This program scans Go source code and emits an annotation graph for git.sr.ht's code annotations feature.

Usage

annotatego [-Tdv] packages... >annotations.json

The list of packages should be specified per the x/tools/go/packages query format. You must run this command from the root directory of your module for it to work correctly.

This will print annotations to stdout and progress to stderr. For information about uploading these annotations to git.sr.ht, see the git.sr.ht docs.

Flags

  • -T: scan tests in addition to normal code
  • -d: disable linking to Godoc for external symbols (enabled by default)
  • -v: enable linking variables to their definitions

Example

To generate annotations for all packages in the git.sr.ht/~sircmpwn/godoc module:

annotatego -v git.sr.ht/~sircmpwn/godoc... > annotations.json

Bugs, help, patches

Submit bugs to ~sircmpwn/annotate.

Send support requests to sr.ht-discuss.

Send patches via email to sr.ht-dev with git config format.subjectPrefix 'PATCH annotatego'.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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