From a40baeb8bca817a332da1a91987b19bdc7c04756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=93=9D?= Date: Thu, 4 Jul 2019 14:13:48 +0800 Subject: [PATCH] fix: method name --- pkg/conf/paladin/value.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/conf/paladin/value.go b/pkg/conf/paladin/value.go index 6a91c6e61..bafb86b99 100644 --- a/pkg/conf/paladin/value.go +++ b/pkg/conf/paladin/value.go @@ -159,7 +159,7 @@ func (v *Value) UnmarshalTOML(dst interface{}) error { } // UnmarshalJSON unmarhsal json to struct. -func (v *Value) UnmarshalJson(dst interface{}) error { +func (v *Value) UnmarshalJSON(dst interface{}) error { text, err := v.Raw() if err != nil { return err @@ -167,7 +167,7 @@ func (v *Value) UnmarshalJson(dst interface{}) error { return json.Unmarshal([]byte(text), dst) } -func (v *Value) UnmarshalYaml(dst interface{}) error { +func (v *Value) UnmarshalYAML(dst interface{}) error { text, err := v.Raw() if err != nil { return err