Documentation
¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Argument ¶
type Argument struct { Index string `json:"index"` // Index Desc string `json:"desc"` // Desc Type VariableType `json:"type"` // Type IsOptional bool `json:"optional"` // Optional IsWildcard bool `json:"wildcard"` // Wildcard }
Argument contains info about method argument
type Document ¶
type Document struct { Title string `json:"title"` About []string `json:"about"` Constants []*Variable `json:"constants"` Variables []*Variable `json:"variables"` Methods []*Method `json:"methods"` }
Document contains info about all constants, global variables and methods
func (*Document) HasConstants ¶
HasConstants return true if doc has constants info
func (*Document) HasMethods ¶
HasMethods return true if doc has methods info
func (*Document) HasVariables ¶
HasVariables return true if doc has global variables info
type Method ¶
type Method struct { Name string `json:"name"` // Name Desc []string `json:"desc"` // Description Arguments []*Argument `json:"arguments"` // Arguments ResultCode bool `json:"result_code"` // Method uses exit codes ResultEcho *Variable `json:"result_echo"` // Return argument Example []string `json:"example"` // Example Line int `json:"line"` // LOC of definition }
Method contains info about method
func (*Method) HasArguments ¶
HasArguments return true if method has arguments
func (*Method) HasExample ¶
HasExample return true if method has code usage example
func (*Method) UnitedDesc ¶
UnitedDesc return united description string
type Variable ¶
type Variable struct { Name string `json:"name"` // Name Desc []string `json:"desc"` // Description Type VariableType `json:"type"` // Type Value string `json:"value"` // Value Line int `json:"line"` // LOC of definition }
Variable contains info about variable
func (*Variable) UnitedDesc ¶
UnitedDesc return united description string
type VariableType ¶
type VariableType uint8
VariableType contains variable type
const ( VAR_TYPE_UNKNOWN VariableType = 0 VAR_TYPE_STRING VariableType = 1 VAR_TYPE_NUMBER VariableType = 2 VAR_TYPE_BOOLEAN VariableType = 3 )
Click to show internal directories.
Click to hide internal directories.