Documentation
¶
Overview ¶
Package generator generates the breaking-changes and changelog messages for the checker package. The output, messages.yaml can be used by the checker package instead of the hardcoded messages under localizations_src. Advatages over manuallly writing the messages: - The generated ids and messages are consistent according to the logic in the generator. - The generator can be easily extended to support more messages. Additional work needed before using the generator: - Check that all messages are covered by the generator. - Decide what to do with Russian messages.
Index ¶
- func Generate(getter Getter) ([]string, error)
- func GetTree(file string) func() (MessageGenerator, error)
- type Actions
- type ChangeMap
- type ChangeTree
- type Changes
- type Getter
- type IValueSet
- type MessageGenerator
- type Object
- type Objects
- type ValueSet
- type ValueSetA
- type ValueSetB
- type ValueSetList
- type ValueSets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTree ¶
func GetTree(file string) func() (MessageGenerator, error)
Types ¶
type ChangeTree ¶
type Getter ¶
type Getter func() (MessageGenerator, error)
type MessageGenerator ¶
type MessageGenerator interface {
// contains filtered or unexported methods
}
type ValueSetA ¶
type ValueSetA ValueSet
ValueSetA messages start with the object for example: "api was removed without deprecation"
type ValueSetB ¶
type ValueSetB ValueSet
ValueSetB messages start with the action for example: "removed %s request parameter %s"
type ValueSetList ¶
type ValueSetList []ValueSet