Creates sourcehut JSON annotations for Go source trees
Switch to less broken getopt implementation
Deal with weird git output
Add README.md

refs

master
browse log

clone

read-only
https://git.sr.ht/~sircmpwn/annotatego
read/write
git@git.sr.ht:~sircmpwn/annotatego

You can also use your local clone with git send-email.

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