My code as below
xml_string = `<?xml version="1.0" encoding="UTF-16"?><a></a>`
var req Request
text := strings.NewReader(string(response))
nr, _ = charset.NewReaderLabel("utf-16", text)
decoder := xml.NewDecoder(nr)
err := decoder.Decode(&req)
By the way I am getting EOF error and nil decoded response. Not seem to make it work.