Versions in this module Expand all Collapse all v1 v1.0.0 Nov 27, 2019 Changes in this version + const Header + type AnnotationParser interface + Parse func(content string) (annotations []interface{}) + SetAnnotation func(name string, annotationType interface{}) + type ArraySpec struct + Length string + Value Spec + func (m *ArraySpec) Clone() interface{} + func (m *ArraySpec) FetchImports(file *File) []*Import + func (m *ArraySpec) RenameImports(oldAlias string, newAlias string) + func (m *ArraySpec) String() string + func (m *ArraySpec) Validate() + type Cloner interface + Clone func() interface{} + type Const struct + Annotations []interface{} + Comment string + Name string + Spec *SimpleSpec + Value string + func (m *Const) Clone() interface{} + func (m *Const) FetchImports(file *File) []*Import + func (m *Const) RenameImports(oldAlias string, newAlias string) + func (m *Const) String() string + func (m *Const) Validate() + type ConstGroup struct + Annotations []interface{} + Comment string + Consts []*Const + func (m *ConstGroup) Clone() interface{} + func (m *ConstGroup) FetchImports(file *File) []*Import + func (m *ConstGroup) RenameImports(oldAlias string, newAlias string) + func (m *ConstGroup) String() string + func (m *ConstGroup) Validate() + type Field struct + Annotations []interface{} + Comment string + Name string + Spec Spec + Tag string + func (m *Field) Clone() interface{} + func (m *Field) FetchImports(file *File) []*Import + func (m *Field) RenameImports(oldAlias string, newAlias string) + func (m *Field) Validate() + type File struct + Annotations []interface{} + Comment string + ConstGroups []*ConstGroup + Content string + Funcs []*Func + ImportGroups []*ImportGroup + Name string + PackageName string + TypeGroups []*TypeGroup + VarGroups []*VarGroup + func (m *File) Clone() interface{} + func (m *File) RenameImports(oldAlias string, newAlias string) + func (m *File) String() string + func (m *File) Validate() + type FileIsGeneratedAnnotation bool + type Func struct + Annotations []interface{} + Comment string + Content string + Name string + Related *Field + Spec *FuncSpec + func (m *Func) Clone() interface{} + func (m *Func) FetchImports(file *File) []*Import + func (m *Func) RenameImports(oldAlias string, newAlias string) + func (m *Func) String() string + func (m *Func) Validate() + type FuncSpec struct + IsVariadic bool + Params []*Field + Results []*Field + func (m *FuncSpec) Clone() interface{} + func (m *FuncSpec) FetchImports(file *File) []*Import + func (m *FuncSpec) RenameImports(oldAlias string, newAlias string) + func (m *FuncSpec) String() string + func (m *FuncSpec) Validate() + type GoSourceParser struct + func NewGoSourceParser(annotationParser AnnotationParser) *GoSourceParser + func (p *GoSourceParser) Parse(fileName string, content string) *File + type Import struct + Alias string + Annotations []interface{} + Comment string + Namespace string + func (m *Import) Clone() interface{} + func (m *Import) RealAlias() string + func (m *Import) RenameImports(oldAlias string, newAlias string) + func (m *Import) String() string + func (m *Import) Validate() + type ImportGroup struct + Annotations []interface{} + Comment string + Imports []*Import + func (m *ImportGroup) Clone() interface{} + func (m *ImportGroup) RenameImports(oldAlias string, newAlias string) + func (m *ImportGroup) String() string + func (m *ImportGroup) Validate() + type ImportsFetcher interface + FetchImports func(*File) []*Import + type ImportsRenamer interface + RenameImports func(oldAlias string, newAlias string) + type InterfaceSpec struct + Fields []*Field + func (m *InterfaceSpec) Clone() interface{} + func (m *InterfaceSpec) FetchImports(file *File) []*Import + func (m *InterfaceSpec) RenameImports(oldAlias string, newAlias string) + func (m *InterfaceSpec) String() string + func (m *InterfaceSpec) Validate() + type JSONAnnotationParser struct + func NewJSONAnnotationParser() *JSONAnnotationParser + func (p *JSONAnnotationParser) Parse(content string) []interface{} + func (p *JSONAnnotationParser) SetAnnotation(name string, annotationType interface{}) + type MapSpec struct + Key Spec + Value Spec + func (m *MapSpec) Clone() interface{} + func (m *MapSpec) FetchImports(file *File) []*Import + func (m *MapSpec) RenameImports(oldAlias string, newAlias string) + func (m *MapSpec) String() string + func (m *MapSpec) Validate() + type Namespace struct + Files []*File + IsIgnored bool + Name string + Path string + func (m *Namespace) Clone() interface{} + func (m *Namespace) FindFileByName(name string) *File + func (m *Namespace) PackageName() string + func (m *Namespace) Validate() + type SimpleSpec struct + IsPointer bool + PackageName string + TypeName string + func (m *SimpleSpec) Clone() interface{} + func (m *SimpleSpec) FetchImports(file *File) []*Import + func (m *SimpleSpec) RenameImports(oldAlias string, newAlias string) + func (m *SimpleSpec) String() string + func (m *SimpleSpec) Validate() + type SourceParser interface + Parse func(fileName string, content string) *File + type Spec interface + type Storage struct + AnnotationParser AnnotationParser + Namespaces []*Namespace + SourceParser SourceParser + func NewStorage() *Storage + func (m *Storage) Clone() interface{} + func (m *Storage) FindNamespaceByName(name string) *Namespace + func (m *Storage) RemoveOldGeneratedFiles() + func (m *Storage) ScanFiles(path string) []*File + func (m *Storage) ScanRecursive(rootNamespace string, rootPath string, ignores ...string) + func (m *Storage) Validate() + func (m *Storage) WriteGeneratedFiles() + type Stringer interface + String func() string + type StructSpec struct + Fields []*Field + func (m *StructSpec) Clone() interface{} + func (m *StructSpec) FetchImports(file *File) []*Import + func (m *StructSpec) RenameImports(oldAlias string, newAlias string) + func (m *StructSpec) String() string + func (m *StructSpec) Validate() + type Type struct + Annotations []interface{} + Comment string + Name string + Spec Spec + func (m *Type) Clone() interface{} + func (m *Type) FetchImports(file *File) []*Import + func (m *Type) RenameImports(oldAlias string, newAlias string) + func (m *Type) String() string + func (m *Type) Validate() + type TypeGroup struct + Annotations []interface{} + Comment string + Types []*Type + func (m *TypeGroup) Clone() interface{} + func (m *TypeGroup) FetchImports(file *File) []*Import + func (m *TypeGroup) RenameImports(oldAlias string, newAlias string) + func (m *TypeGroup) String() string + func (m *TypeGroup) Validate() + type Validator interface + Validate func() + type Var struct + Annotations []interface{} + Comment string + Name string + Spec Spec + Value string + func (m *Var) Clone() interface{} + func (m *Var) FetchImports(file *File) []*Import + func (m *Var) RenameImports(oldAlias string, newAlias string) + func (m *Var) String() string + func (m *Var) Validate() + type VarGroup struct + Annotations []interface{} + Comment string + Vars []*Var + func (m *VarGroup) Clone() interface{} + func (m *VarGroup) FetchImports(file *File) []*Import + func (m *VarGroup) RenameImports(oldAlias string, newAlias string) + func (m *VarGroup) String() string + func (m *VarGroup) Validate()