Versions in this module Expand all Collapse all v1 v1.0.4 Oct 25, 2020 Changes in this version + type File struct + Comment string + Constants []NamedTypeValue + FuncType FuncType + Imports []NamedTypeValue + Interfaces []Interface + Methods []Method + Package string + Structures []Struct + Vars []NamedTypeValue + func NewFile() File + type FileParser struct + func NewFileParser() *FileParser + func (fp *FileParser) Parse(src []byte) (*File, error) + type FuncType struct + Name string + Parameters []NamedTypeValue + Results []NamedTypeValue + type Interface struct + Comment string + Methods []Method + Name string + func NewInterface(name string, methods []Method) Interface + type Method struct + Body string + Comment string + Name string + Parameters []NamedTypeValue + Results []NamedTypeValue + Struct NamedTypeValue + func NewMethod(name string, str NamedTypeValue, body string, ...) Method + type NamedTypeValue struct + Name string + Type string + Value string + func NewNameType(name string, tp string) NamedTypeValue + func NewNameTypeValue(name string, tp string, vl string) NamedTypeValue + type Struct struct + Comment string + Name string + Vars []NamedTypeValue + func NewStruct(name string, vars []NamedTypeValue) Struct