1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00

fix: method name

This commit is contained in:
2019-07-04 14:13:48 +08:00
parent adde408382
commit a40baeb8bc

View File

@ -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