gonote
Library and CLI tool for parsing Go project documentation notes
Overview
gonote
provides the ability to recursively parse a Go project space for godoc notes. These notes are described in the godoc library documentation.
Godoc notes are structured comments found in Go source code. These notes take the form of a marker, an UID, and a body:
MARKER(uid): note body
The marker labels the category of comment. For example, you may have a comment related to describing a known bug, in which case the marker would be BUG
. You could also have a marker for labeling a TODO item, where the marker would be TODO
. In both cases, the UID could be a username responsible for following up on that issue. The note body contains any related details.
Examples
Here are a few examples of godoc notes from the Go standard library:
Installation
gonote
requires Go v1.10+ and a valid Go workspace.
To install:
go get -u github.com/pokstad/gonote/gonote
Usage
OVERVIEW:
gonote scans Go source code files for notations
USAGE:
gonote [OPTIONS] TARGET
TARGET:
the Go package path you wish to scan
OPTIONS:
-output [json|text|textmate]