features

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(n yaml.Node) error

Types

type SequenceStyle

type SequenceStyle string
const (
	SequenceStyleBlock SequenceStyle = "block"
	SequenceStyleFlow  SequenceStyle = "flow"
)

type YAMLFeatureFunc

type YAMLFeatureFunc func(yaml.Node) error

These features will directly use the `yaml.Node` type and as such are specific to this formatter.

func FeatureForceSequenceStyle

func FeatureForceSequenceStyle(style SequenceStyle) YAMLFeatureFunc

type YAMLFeatureList

type YAMLFeatureList []YAMLFeatureFunc

func (YAMLFeatureList) ApplyFeatures

func (y YAMLFeatureList) ApplyFeatures(node yaml.Node) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL