Documentation
¶
Overview ¶
Package tabindent configures structural YAML indentation.
ModeAuto defaults to automatic loading and tab dumping. ModeTabs defaults to tab loading and tab dumping. Explicit load and dump options override those presets.
Index ¶
Constants ¶
const ( ModeAuto = yaml.IndentModeAuto ModeTabs = yaml.IndentModeTabs )
const ( StyleAuto = yaml.IndentStyleAuto StyleSpaces = yaml.IndentStyleSpaces StyleTabs = yaml.IndentStyleTabs )
const ( ScopeDocument = yaml.IndentScopeDocument ScopeStream = yaml.IndentScopeStream )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin configures tab-aware YAML loading and dumping.
func NewFromYAML ¶
NewFromYAML creates a plugin from a named-plugin configuration.
func (*Plugin) TabIndentConfig ¶
func (p *Plugin) TabIndentConfig() yaml.IndentConfig
TabIndentConfig implements yaml.TabIndentPlugin.
type Scope ¶
type Scope = yaml.IndentScope
Scope controls how long an auto-detected style remains active.
type Style ¶
type Style = yaml.IndentStyle
Style identifies the characters used for structural indentation.