Created
May 19, 2012 18:46
-
-
Save mbeale/2731920 to your computer and use it in GitHub Desktop.
GO and XML sample2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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