Documentation ¶
Index ¶
- Variables
- type TypeAst
- type Typelist
- func (l *Typelist) DeleteType(typename string)
- func (l *Typelist) LoadInstalledTypeSpecsFromDir(specDir ...string)
- func (l *Typelist) LoadTypeSpecsFromDir(specDir string)
- func (l *Typelist) ResolveProtoImportForType(fqTypeName string) (imp string, typeFound bool)
- func (l *Typelist) SaveAllTypeSpecsToDir(specDir string)
- func (l *Typelist) UpdateImports()
Constants ¶
This section is empty.
Variables ¶
View Source
var Format = "json"
Functions ¶
This section is empty.
Types ¶
type TypeAst ¶
type TypeAst struct { Path string // relative path of spec file to SpecDir FileName string TypeSpec specSpec.Type }
func (*TypeAst) GetProtoTarget ¶
func (*TypeAst) ToJsonFlat ¶
returns unindented json
type Typelist ¶
type Typelist struct { TypesByName map[string]*TypeAst InstalledTypesByName map[string]*TypeAst SpecDir string }
func (*Typelist) DeleteType ¶
Deletes the spec from disk and removes the element from List
func (*Typelist) LoadInstalledTypeSpecsFromDir ¶
loads a spec directory and installed specs to the typelist
func (*Typelist) LoadTypeSpecsFromDir ¶
loads a spec directory and installed specs to the typelist
func (*Typelist) ResolveProtoImportForType ¶
func (*Typelist) SaveAllTypeSpecsToDir ¶
stores the typelist to the spec directory
func (*Typelist) UpdateImports ¶
func (l *Typelist) UpdateImports()
updates the imports on each type
Click to show internal directories.
Click to hide internal directories.