eo

package
v0.0.0-...-8748031 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: BSD-3-Clause Imports: 13 Imported by: 0

README

eo

This repository houses executive order data from archive.gov, as well as the federal register. It provides a simple parser to extract the archive.gov data. There are two sources utilized here, the second is federalregister.gov, but that data source doesn't have various metadata for all orders (revokes, amends, notes, etc.). The federal register data can be accessed easily via a REST API, the archive.gov data must be scraped or manually downloaded. The federalregister.gov data is updated locally as data/fr.json and imported after the text EO data. The internal representation of the data is the shorter of the two (early EO data). The data is ingested and can be exported to a csv, yaml, or json file using cmd/export.go

Documentation

Index

Constants

View Source
const (
	Unknown    = "Unknown"
	Hoover     = "Herbert Hoover"
	Roosevelt  = "Franklin D. Roosevelt"
	Truman     = "Harry S. Truman"
	Eisenhower = "Dwight D. Eisenhower"
	Kennedy    = "John F. Kennedy"
	Johnson    = "Lyndon B. Johnson"
	Nixon      = "Richard Nixon"
	Ford       = "Gerald R. Ford"
	Carter     = "Jimmy Carter"
	Reagan     = "Ronald Reagan"
	BushHW     = "George H. W. Bush"
	Clinton    = "Bill Clinton"
	BushW      = "George W. Bush"
	Obama      = "Barack Obama"
	Trump      = "Donald J. Trump"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecOrder

type ExecOrder struct {
	// Executive order number, some have a trailing alpha character such as 'A',
	// or '-A'
	Number    string            `json:"number",yaml:"number"`
	Notes     map[string]string `json:"notes",yaml:"notes"`
	Title     string            `json:"title",yaml:"title"`
	President string            `json:"president",yaml:"president"`
	Signed    time.Time         `json:"signed",yaml:"signed"`
}

ExecOrder represents a single order issued by a president

func ParseAllOrders

func ParseAllOrders(path string) ([]ExecOrder, error)

func ParseExecOrders

func ParseExecOrders(r io.Reader) []ExecOrder

func ParseExecOrdersIn

func ParseExecOrdersIn(year int) []ExecOrder

ParseExecOrdersIn reads the orders from the data folder for the specified year. If the year isn't in the data folder, or any other error is encountered, a nil slice is returned.

TODO(kyle): return a valid error on error

func (ExecOrder) AsInt

func (e ExecOrder) AsInt() int

func (*ExecOrder) RevokeStrings

func (e *ExecOrder) RevokeStrings(ignorePartial bool) []string

func (*ExecOrder) Revokes

func (e *ExecOrder) Revokes() []string

Return the order numbers of the orders that an order revokes

TODO(kyle): return a full EO, so we can have the suffix.

func (ExecOrder) String

func (eo ExecOrder) String() string

String returns a formated order that closely matches the format from Roosevelt to 1994, when the federal register takes over.

func (*ExecOrder) Whom

func (e *ExecOrder) Whom() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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