Documentation ¶
Overview ¶
Package godocx is the library for extracting Go documentation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocEnvelope ¶
type DocEnvelope struct { Timestamp time.Time `json:"timestamp"` Packages map[string]*Package `json:"packages"` }
DocEnvelope puts packages together. Last output of godocx should be this type.
func New ¶
func New(dirPaths []string) (*DocEnvelope, error)
New creates a new DocEnvelope from the given directory paths.
type Func ¶
type Func struct { Name string `json:"name"` Doc string `json:"doc"` Recv string `json:"recv"` Orig string `json:"orig"` Level int `json:"level"` Annotations []string `json:"annotations"` }
Func is the documentation for a func declaration.
type Note ¶
A Note represents a marked comment starting with "MARKER(uid): note body". Any note with a marker of 2 or more upper case [A-Z] letters and a uid of at least one character is recognized. The ":" following the uid is optional.
type Package ¶
type Package struct { Name string `json:"name"` ImportPath string `json:"importPath"` Notes map[string][]*Note `json:"notes"` Consts []*Value `json:"consts"` Vars []*Value `json:"vars"` Funcs []*Func `json:"funcs"` Types []*Type `json:"types"` }
Package is the documentation for an entire package.
Click to show internal directories.
Click to hide internal directories.