type GenerationBehavior … const BehaviorUnspecified … const BehaviorCreate … const BehaviorReplace … const BehaviorMerge … // String converts a GenerationBehavior to a string. func (b GenerationBehavior) String() string { … } // NewGenerationBehavior converts a string to a GenerationBehavior. func NewGenerationBehavior(s string) GenerationBehavior { … }