aboutsummaryrefslogtreecommitdiffhomepage
path: root/config/configLoader.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-12-23 10:40:32 +0100
committerBjørn Erik Pedersen <[email protected]>2018-12-23 16:33:21 +0100
commita5744697971d296eb973e04e4259fe9e516b908f (patch)
tree488ed37ebfc8916b5cfcdaade249884aec7105c3 /config/configLoader.go
parent822dc627a1cfdf1f97882f27761675ac6ace7669 (diff)
downloadhugo-a5744697971d296eb973e04e4259fe9e516b908f.tar.gz
hugo-a5744697971d296eb973e04e4259fe9e516b908f.zip
Add CSV support to transform.Unmarshal
Fixes #5555
Diffstat (limited to 'config/configLoader.go')
-rw-r--r--config/configLoader.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/configLoader.go b/config/configLoader.go
index b60aa3fe5..31e3e00e4 100644
--- a/config/configLoader.go
+++ b/config/configLoader.go
@@ -57,7 +57,7 @@ func FromFileToMap(fs afero.Fs, filename string) (map[string]interface{}, error)
}
func readConfig(format metadecoders.Format, data []byte) (map[string]interface{}, error) {
- m, err := metadecoders.UnmarshalToMap(data, format)
+ m, err := metadecoders.Default.UnmarshalToMap(data, format)
if err != nil {
return nil, err
}
@@ -69,7 +69,7 @@ func readConfig(format metadecoders.Format, data []byte) (map[string]interface{}
}
func loadConfigFromFile(fs afero.Fs, filename string) (map[string]interface{}, error) {
- m, err := metadecoders.UnmarshalFileToMap(fs, filename)
+ m, err := metadecoders.Default.UnmarshalFileToMap(fs, filename)
if err != nil {
return nil, err
}