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 ParseExecOrders ¶
func ParseExecOrdersIn ¶
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) RevokeStrings ¶
func (*ExecOrder) Revokes ¶
Return the order numbers of the orders that an order revokes
TODO(kyle): return a full EO, so we can have the suffix.
Click to show internal directories.
Click to hide internal directories.