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:
parent
adde408382
commit
a40baeb8bc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user