[go-nuts] Re: appengine golang logs

2017-11-03 Thread Jim Cote
In appengine you have to use google.golang.org/appengine/log package. The log calls must have a context passed to it. See https://cloud.google.com/appengine/docs/standard/go/logs/reference. On Friday, November 3, 2017 at 3:58:34 AM UTC-4, Sankar wrote: > > Hi > > > I have a golang file where I

[go-nuts] Re: time.Parse with millisecond separated by colon

2017-10-30 Thread Jim Cote
See https://golang.org/src/time/format.go?s=23626:23672#L249. The standard library is explicitly looking for the period. Your easiest solution would be to just write your own parser. On Monday, October 30, 2017 at 11:20:51 AM UTC-4, Diego Medina wrote: > > Hi, > > I need to parse datetime data

[go-nuts] Re: dynamic xml

2017-10-19 Thread Jim Cote
You'll need to use an UnmarshalXML func for the params: // Param is a tag w/ any name type Param struct { Namestring `xml:"-"` Typestring `xml:"type,attr"` MinOccurs int`xml:"minOccurs,attr"` MaxOccurs int`xml:"maxOccurs,attr"` Description string `xm

[go-nuts] Re: dynamic xml

2017-10-19 Thread Jim Cote
You'll need to use a custom UnmarshalXML func to handle this. // TopLevel is of course top level type TopLevel struct { Description string `xml:"description"` Rights Rights `xml:"rights"` Method []Method `xml:"method"` } // Method has request type Method struct { Name