On Mon, Nov 2, 2020 at 12:30 PM irvan hendrik <irvan.hend...@gmail.com> wrote:

> yes. because when I marshal it to json the number got messed up.
> when I entered value 10.0 it became 10.
> If I use json.number it keeps the format 10.0.

Sounds like conflating data and their representation. I'm not a json
expert, but AFAIK, the sequence of characters `10` and `10.0`
represent the very same json number.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAA40n-Un142M6j8FvwV%2BcmhiptQ%3DuPoSznwRuK8LT5UPAdQJYA%40mail.gmail.com.

Reply via email to