|
@ -24,7 +24,7 @@ func (v Value) MarshalJSON() ([]byte, error) { |
|
|
return b, nil |
|
|
return b, nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//nolint: gocyclo,gomnd,cyclop
|
|
|
//nolint:gocyclo,gomnd,cyclop
|
|
|
func (v Value) String() string { |
|
|
func (v Value) String() string { |
|
|
switch { |
|
|
switch { |
|
|
case v.vtype.IsArray(), v.vtype.IsAny(): |
|
|
case v.vtype.IsArray(), v.vtype.IsAny(): |
|
@ -62,7 +62,7 @@ func (v Value) String() string { |
|
|
return fmt.Sprintf("%+v", v.AsInterface()) |
|
|
return fmt.Sprintf("%+v", v.AsInterface()) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//nolint: gocyclo,cyclop
|
|
|
//nolint:gocyclo,cyclop
|
|
|
func (v Value) AsInterface() interface{} { |
|
|
func (v Value) AsInterface() interface{} { |
|
|
switch { |
|
|
switch { |
|
|
case v.vtype.IsArray(): |
|
|
case v.vtype.IsArray(): |
|
|