Versions in this module Expand all Collapse all v0 v0.0.3 Feb 1, 2021 v0.0.2 Feb 1, 2021 Changes in this version + func ParseCommentGroup(gg *ast.CommentGroup) []string + type Args []string + func (a Args) Get(index uint) (string, bool) + func (a Args) Len() int + type CmdBase struct + func (c CmdBase) GetArgs() Args + func (c CmdBase) GetCmd() CmdKind + type CmdKind string + const RootKind + const SchemaKind + type CmdRoot struct + func NewCmdRoot(cmd CmdBase) (CmdRoot, error) + type CmdSchema struct + Name string + Ptr pointer.Pointer + type Commander interface + GetArgs func() Args + GetCmd func() CmdKind + func NewCmdSchema(cmd CmdBase) (s Commander, err error) + func Parse(pkg *packages.Package, comment string) (s Commander, err error) + type List []Commander + func (cc List) Pointers() pointer.Pointers + type Map map[string]List + func (cc Map) Pointers() (pp pointer.Pointers) + type Scanner struct + Commands Map + func NewScanner() *Scanner + func (r *Scanner) ExportedComponents() (exports resolver.Exports, err error) + func (r *Scanner) Scan(pkg *packages.Package) (err error)