Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnrecognizedQuoteStyle = errors.New("unrecognized quote style")
View Source
var ErrUnrecognizedSequenceStyle = errors.New("unrecognized sequence style")
Functions ¶
Types ¶
type QuoteStyle ¶ added in v0.21.0
type QuoteStyle string
const ( SingleQuoteStyle QuoteStyle = "single" DoubleQuoteStyle QuoteStyle = "double" )
type SequenceStyle ¶
type SequenceStyle string
const ( SequenceStyleBlock SequenceStyle = "block" SequenceStyleFlow SequenceStyle = "flow" )
type YAMLFeatureFunc ¶
These features will directly use the `yaml.Node` type and as such are specific to this formatter.
func FeatureForceQuoteStyle ¶ added in v0.21.0
func FeatureForceQuoteStyle(style QuoteStyle) (YAMLFeatureFunc, error)
func FeatureForceSequenceStyle ¶
func FeatureForceSequenceStyle(style SequenceStyle) (YAMLFeatureFunc, error)
type YAMLFeatureList ¶
type YAMLFeatureList []YAMLFeatureFunc
func (YAMLFeatureList) ApplyFeatures ¶
func (y YAMLFeatureList) ApplyFeatures(node yaml.Node) error
Click to show internal directories.
Click to hide internal directories.