Thanks for the help
if REST XML output xs:double value supports scientific notation then it's
fine I will keep it as is
Thanks,
Abhi
On Saturday, March 31, 2018 at 2:24:51 PM UTC+5:30, Jesper Louis Andersen
wrote:
>
> The underlying question is: why do you want to use an 'f' representation
>
This program will make panic not panicking but silently blocking forever.
func panicfunc() {
panic("oops")
}
func run() {
defer func() {
select {}
}
panicfunc()
}
func main() {
// not trigger runtime deadlock.
go func() {
ticker := time.NewTicker(1
I have a piece of valid asn.1 that i'm not able to properly parse with
Go's encoding/asn.1. I have distilled the example down to:
https://play.golang.org/p/YQCVxhEKnJx
the asn1 code, which i generated with asn1c, is parseable by asn1c and
lapo.it: http://lapo.it/asn1js/#A010A106800101810102A20680
Hi
I have an HTML template where I'd like to provide tags externally.
I'd like to
leverage html/template's escaping for href. Therefore, it seemed easiest to
just
create a struct with fields for rel, href, title and type.
Trying to just use string types means I get everything escaped.
Surpris
The underlying question is: why do you want to use an 'f' representation of
a floating point value rather than a 'g' representation?
If I read the XML Schema specification correctly, then an xs:double value
is allowed to be in scientific notation, so there should be little reason
to output this va
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