mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-02 02:11:39 +00:00
23 lines
407 B
Go
23 lines
407 B
Go
package yqlib
|
|
|
|
type INIPreferences struct {
|
|
Indent int
|
|
ColorsEnabled bool
|
|
}
|
|
|
|
func NewDefaultINIPreferences() INIPreferences {
|
|
return INIPreferences{
|
|
Indent: 2,
|
|
ColorsEnabled: false,
|
|
}
|
|
}
|
|
|
|
func (p *INIPreferences) Copy() INIPreferences {
|
|
return INIPreferences{
|
|
Indent: p.Indent,
|
|
ColorsEnabled: p.ColorsEnabled,
|
|
}
|
|
}
|
|
|
|
var ConfiguredINIPreferences = NewDefaultINIPreferences()
|