Skip to content

Commit 6e630e5

Browse files
committed
feat(encoding): drop HCL, Java properties and INI
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
1 parent e033c8e commit 6e630e5

File tree

2 files changed

+15
-259
lines changed

2 files changed

+15
-259
lines changed

‎encoding.go‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ import (
66
"sync"
77

88
"github.com/spf13/viper/internal/encoding/dotenv"
9-
"github.com/spf13/viper/internal/encoding/hcl"
10-
"github.com/spf13/viper/internal/encoding/ini"
11-
"github.com/spf13/viper/internal/encoding/javaproperties"
129
"github.com/spf13/viper/internal/encoding/json"
1310
"github.com/spf13/viper/internal/encoding/toml"
1411
"github.com/spf13/viper/internal/encoding/yaml"
@@ -113,20 +110,6 @@ func (r codecRegistry) codec(format string) (Codec, bool) {
113110
case "toml":
114111
return toml.Codec{}, true
115112

116-
case "hcl", "tfvars":
117-
return hcl.Codec{}, true
118-
119-
case "ini":
120-
return ini.Codec{
121-
KeyDelimiter: r.v.keyDelim,
122-
LoadOptions: r.v.iniLoadOptions,
123-
}, true
124-
125-
case "properties", "props", "prop": // Note: This breaks writing a properties file.
126-
return &javaproperties.Codec{
127-
KeyDelimiter: v.keyDelim,
128-
}, true
129-
130113
case "dotenv", "env":
131114
return &dotenv.Codec{}, true
132115
}

0 commit comments

Comments
 (0)