Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain struct {
Translations TranslationMap
ContextTranslations map[string]TranslationMap
}
Domain holds all translations of one domain
func (*Domain) AddTranslation ¶
func (d *Domain) AddTranslation(translation *Translation)
AddTranslation to the domain
type DomainMap ¶
DomainMap contains multiple domains as map with name as key
func (*DomainMap) AddTranslation ¶
func (m *DomainMap) AddTranslation(domain string, translation *Translation)
AddTranslation to domain map
type GetterDef ¶
GetterDef describes a getter
func (*GetterDef) MaxArgIndex ¶ added in v1.7.2
MaxArgIndex returns the largest argument index
type GoFile ¶
type GoFile struct {
FilePath string
BasePath string
Data *DomainMap
FileSet *token.FileSet
PkgConf *packages.Config
ImportedPackages map[string]*packages.Package
}
GoFile handles the parsing of one go file
func (*GoFile) InspectCallExpr ¶ added in v1.7.2
InspectCallExpr inspects the call expression
type Translation ¶
Translation for a text to translate
func (*Translation) AddLocations ¶
func (t *Translation) AddLocations(locations []string)
AddLocations to translation
type TranslationMap ¶
type TranslationMap map[string]*Translation
TranslationMap contains a map of translations with the ID as key
func (TranslationMap) Dump ¶
func (m TranslationMap) Dump() string
Dump the translation map as string
Click to show internal directories.
Click to hide internal directories.