Skip to content

Instantly share code, notes, and snippets.

@ansonl
Created October 15, 2014 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ansonl/c10a412e16eda175f8d6 to your computer and use it in GitHub Desktop.
Save ansonl/c10a412e16eda175f8d6 to your computer and use it in GitHub Desktop.
Lobbyist Lookup Senate structs
type SenateRegistrant struct {
RegistrantName string `xml:",attr"`
RegistrantID string `xml:",attr"`
RegistrantCountry string `xml:",attr"`
}
type SenateClient struct {
ClientName string `xml:",attr"`
ClientID string `xml:",attr"`
ContactFullname string `xml:",attr"`
IsStateOrLocalGov bool `xml:",attr"`
ClientCountry string `xml:",attr"`
}
type SenateLobbyist struct {
LobbyistName string `xml:",attr"`
FirstName string
LastName string
}
type SenateFiling struct {
ID string `xml:",attr"`
Year string `xml:",attr"`
Type string `xml:",attr"`
Period string `xml:",attr"`
Client SenateClient `xml:Client"`
Registrant SenateRegistrant `xml:"Registrant"`
Lobbyists []SenateLobbyist `xml:"Lobbyists>Lobbyist"`
}
type SenateFile struct {
Filings []SenateFiling `xml:"Filing"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment