Skip to content

Commit

Permalink
fix serial-to-json
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Oct 27, 2024
1 parent 28826b0 commit b20c6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/serial-to-json/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func convertIncompatibleFloats(obj any) interface{} {
return convert(v.Interface().(float64))

case reflect.Bool, reflect.Int, reflect.Uint, reflect.Int8, reflect.Uint8, reflect.Int16, reflect.Uint16,
reflect.Int32, reflect.Uint32, reflect.Int64, reflect.Uint64:
reflect.Int32, reflect.Uint32, reflect.Int64, reflect.Uint64, reflect.String:
return v.Interface()

case reflect.Array:
Expand Down

0 comments on commit b20c6ff

Please sign in to comment.