go fmt
This commit is contained in:
@@ -32,9 +32,9 @@ func init() {
|
||||
}
|
||||
|
||||
type error struct {
|
||||
XMLName xml.Name`xml:"error"`
|
||||
Code int `xml:"code,attr"`
|
||||
Message string `xml:"message,attr"`
|
||||
XMLName xml.Name `xml:"error"`
|
||||
Code int `xml:"code,attr"`
|
||||
Message string `xml:"message,attr"`
|
||||
}
|
||||
|
||||
func NewError(errorCode int) []byte {
|
||||
@@ -47,4 +47,4 @@ func NewError(errorCode int) []byte {
|
||||
response.Body = xmlBody
|
||||
xmlResponse, _ := xml.Marshal(response)
|
||||
return []byte(xml.Header + string(xmlResponse))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user