Add INI support

This commit is contained in:
beliys
2025-05-17 18:55:53 +10:00
committed by Mike Farah
parent b534aa9ee5
commit 3ac203ebb8
11 changed files with 517 additions and 11 deletions
+22
View File
@@ -0,0 +1,22 @@
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()