Documentation ¶
Index ¶
- Variables
- func IsScalar(typename string) bool
- 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) ResolveFullQualifiedTypeName(typename string, pkg string) string
- func (l *Typelist) ResolveProtoImportForType(typeName string, pkg 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 ¶
func IsScalar ¶ added in v1.11.0
Check for skalar types https://developers.google.com/protocol-buffers/docs/proto3#scalar
Types ¶
type TypeAst ¶
type TypeAst 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 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 AllAvailabeTypes map[string]*TypeAst // installed and project types together 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) ResolveFullQualifiedTypeName ¶ added in v1.5.1
full name from c++ style name
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.