package main import \"fmt\" import \"encoding/json\" type Track struct { XmlRequest string `json:\"xmlRequest\"` } func main() { message := new(Track)
No, you can't.
A third-party json package might be the choice rather than the std json lib.
More detail:https://github.com/golang/go/issues/8592