Documentation ¶ Index ¶ type Bill func GetPending() ([]Bill, error) func GetSigned() ([]Bill, error) func GetVetoed() ([]Bill, error) func (b Bill) Summary(length int) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Bill ¶ type Bill struct { Date time.Time Title string URL string } Bill contains information about a specific entry on the White House site. func GetPending ¶ func GetPending() ([]Bill, error) GetPending fetches a list of pending bills. func GetSigned ¶ func GetSigned() ([]Bill, error) GetSigned fetches a list of signed bills. func GetVetoed ¶ func GetVetoed() ([]Bill, error) GetVetoed fetches a list of vetoed bills. func (Bill) Summary ¶ func (b Bill) Summary(length int) (string, error) Summary fetches and scrapes up to length paragraphs of the bill's contents. In this instance, 'paragraph' means a single section of text, as dilineated by the HTML of the page being scraped. If length is less than zero, the whole bill is returned. Source Files ¶ View all Source files bill.go get.go Directories ¶ Show internal Expand all Path Synopsis cmd signage errors Click to show internal directories. Click to hide internal directories.