found that 

https://golang.org/src/encoding/xml/marshal.go

library contains

return strconv.FormatFloat(val.Float(), 'g', -1, val.Type().Bits()), nil, nil


where 'g' is for ('e' for large exponents, 'f' otherwise)

Can anyone help to know how to do this internal library function 
modifications

i.e to use 'f' instead of 'g' in marshal.go file of golang

Thanks,

Abhi



On Friday, March 30, 2018 at 6:28:42 PM UTC+5:30, Abhijit Desai wrote:
>
> got this example - create a own number type and do custom marshalling of 
> Float
>
> https://play.golang.org/p/2moWdAwXrd
>
> But there are plenty of places where I used this Float64 directly and not 
> easy to change entire code base
>
> Can you please help me to handle this without creating own number
>
> Thanks,
>
> Abhi
>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to