Documentation ¶
Index ¶
- Variables
- type EnumAst
- type Enumlist
- func (l *Enumlist) DeleteType(typename string)
- func (l *Enumlist) LoadEnumSpecsFromDir(specDir string)
- func (l *Enumlist) LoadInstalledEnumSpecsFromDir(specDir ...string)
- func (l Enumlist) ResolveFullQualifiedTypeName(typename string, pkg string) string
- func (l *Enumlist) ResolveProtoImportForType(typeName string, pkg string) (imp string, typeFound bool)
- func (l *Enumlist) SaveAllEnumSpecsToDir(specDir string)
Constants ¶
This section is empty.
Variables ¶
View Source
var Format = "json"
Functions ¶
This section is empty.
Types ¶
type EnumAst ¶
type EnumAst struct { SpecDir string // the base path, like specDir or dependencies/x.y.com/specDir Path string // relative path of spec file to SpecDir FileName string EnumSpec specSpec.Enum }
func (*EnumAst) GetProtoTarget ¶
func (*EnumAst) ToJsonFlat ¶
returns unindented json
type Enumlist ¶
type Enumlist struct { EnumsByName map[string]*EnumAst InstalledEnumsByName map[string]*EnumAst AllAvailabeEnums map[string]*EnumAst // installed and project enums together SpecDir string }
func (*Enumlist) DeleteType ¶
Deletes the spec from disk and removes the element from List
func (*Enumlist) LoadEnumSpecsFromDir ¶
loads a spec directory and installed specs to the typelist
func (*Enumlist) LoadInstalledEnumSpecsFromDir ¶
loads a spec directory and installed specs to the typelist
func (Enumlist) ResolveFullQualifiedTypeName ¶
full name from c++ style name
func (*Enumlist) ResolveProtoImportForType ¶
func (*Enumlist) SaveAllEnumSpecsToDir ¶
stores the typelist to the spec directory
Click to show internal directories.
Click to hide internal directories.