Skip to content

Instantly share code, notes, and snippets.

@mbeale
Created May 19, 2012 18:46
Show Gist options
  • Save mbeale/2731920 to your computer and use it in GitHub Desktop.
Save mbeale/2731920 to your computer and use it in GitHub Desktop.
GO and XML sample2
//Account struct
type Account struct{
XMLName xml.Name `xml:"account"`
AccountCode string `xml:"account_code"`
Username string `xml:"username"`
Email string `xml:"email"`
State string `xml:"state,omitempty"`
FirstName string `xml:"first_name"`
LastName string `xml:"last_name"`
CompanyName string `xml:"company_name"`
AcceptLanguage string `xml:"accept_language"`
HostedLoginToken string `xml:"hosted_login_token,omitempty"`
CreatedAt string `xml:"created_at,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment