Versions in this module Expand all Collapse all v0 v0.2.0 Jul 8, 2019 Changes in this version + type File struct + AliasType []NamedTypeValue + Comment string + Constants []NamedTypeValue + Imports []NamedTypeValue + Interfaces []Interface + Methods []Method + Package string + Structs []Struct + Vars []NamedTypeValue + func NewFile() File + func (f *File) String() string + type FileParser struct + func NewFileParser() *FileParser + func (fp *FileParser) Parse(src []byte) (*File, error) + type Interface struct + Comment string + Methods []Method + Name string + func NewInterface(name string, methods []Method) Interface + func NewInterfaceWithComment(name string, comment string, methods []Method) Interface + func (i *Interface) String() string + type Method struct + Body string + Comment string + Name string + Parameters []NamedTypeValue + Results []NamedTypeValue + Struct NamedTypeValue + func NewMethod(name string, str NamedTypeValue, body string, ...) Method + func NewMethodWithComment(name string, comment string, str NamedTypeValue, body string, ...) Method + func (m *Method) String() string + type NamedTypeValue struct + Comment string + HasValue bool + Name string + Type string + Value string + func NewNameType(name string, tp string) NamedTypeValue + func NewNameTypeValue(name string, tp string, vl string) NamedTypeValue + type ParsedSrc interface + String func() string + type Parser interface + Parse func(src []byte) (ParsedSrc, error) + type Struct struct + Comment string + Name string + Vars []NamedTypeValue + func NewStruct(name string, vars []NamedTypeValue) Struct + func NewStructWithComment(name string, comment string, vars []NamedTypeValue) Struct + func (s *Struct) String() string