signage

package module
v0.0.0-...-55d14c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL