These forums have been archived and are now read-only.
The new forums are live and can be found at https://forums.eveonline.com/
CREST & XML Server time formats incompatible with stock Go
package mainimport ( "encoding/json" "fmt" "net/http" "time")type AllianceV1 struct { StartDate time.Time CorporationsCount int64 Description string URL string ID int64 Name string ShortName string Deleted bool}func main() { response, err := http.Get("https://crest-tq.eveonline.com/alliances/99000006/") if err != nil { fmt.Printf("%+v\n", err.Error()) return } u := AllianceV1{} err = json.NewDecoder(response.Body).Decode(&u) if err != nil { fmt.Printf("%+v\n", err.Error()) return } fmt.Printf("%+v\n", u)}
Killmails: 2016.08.29 19:09:18Most of CREST: 2006-01-02T15:04:05XML API: 2006-01-02 15:04:05ISO 8601: 2006-01-02T15:04:05Z