Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Argument ¶
type Argument struct { Indentation string `@('\n' (' '|'\t')+)` Identifiers []Identifier `@@+` }
type Identifier ¶
type Text ¶
type Text struct { Arguments []Argument `(@@|` // contains filtered or unexported fields }
Text is both used as the grammar and the tree representation of the abstract syntactic structure of a doc string.
func (*Text) Identifiers ¶
Identifiers returns all identifiers of an argument if any of them match the given value.
func (*Text) IsValidIdentifier ¶
IsValidIdentifier returns true if the given value is a valid identifier of an argument or false otherwise.
Click to show internal directories.
Click to hide internal directories.