type
DefaultValue
type DefaultValue struct {
kind DefaultKind
text string
}The immutable typed scalar held by a Default option.
Kind()DefaultKind- Return the typed default-value discriminator.
String()string- Return the canonical scalar representation.
Kind distinguishes string, number, and boolean. String returns the canonical representation.
Methods
DefaultValue.Kind()Kind reports whether the normalized default is a string, number, or boolean.
DefaultValue.String()String returns the canonical textual encoding written to the manifest.