Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTransformers = map[string]Transformer{
"regex": transformRegex,
}
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Unknown string Enabled bool Excludes IDPatterns }
type IDPatterns ¶
type IDPatterns []IDPattern
func (IDPatterns) Matches ¶
func (ids IDPatterns) Matches(path, name string) bool
type TransformContext ¶
type Transformer ¶
type Transformer func(context TransformContext) (map[string]string, error)
Transformer transforms a source enum members to target enum members
The transformer must only return keys present inside the context.Source.Members and context.Target.Members, if something cannot be mapped by the transformer just skip the key and don't return it. An error by this methods aborts the aborts the whole goverter conversion, so only use it when there are config errors.
Click to show internal directories.
Click to hide internal directories.