hcl - sorted decoding

This commit is contained in:
Mike Farah
2025-12-08 20:30:47 +11:00
parent 7d2c774e8f
commit 1852073f29
3 changed files with 79 additions and 7 deletions
+6
View File
@@ -67,6 +67,11 @@ var TomlFormat = &Format{"toml", []string{},
func() Decoder { return NewTomlDecoder() },
}
var HclFormat = &Format{"hcl", []string{"h", "hcl"},
nil,
func() Decoder { return NewHclDecoder() },
}
var ShellVariablesFormat = &Format{"shell", []string{"s", "sh"},
func() Encoder { return NewShellVariablesEncoder() },
nil,
@@ -93,6 +98,7 @@ var Formats = []*Format{
UriFormat,
ShFormat,
TomlFormat,
HclFormat,
ShellVariablesFormat,
LuaFormat,
INIFormat,