Documentation ¶
Index ¶
- func DistrictInfo(jsonArray []byte, entity string, lastUpdated string) error
- func ExistsString(items []string, key string) (string, bool)
- func ExtractDataPoints(dataArray []json.RawMessage, key string) ([]float64, error)
- func FormatDate(date string) string
- func GetKeys(jsonArray []byte) ([]string, error)
- func GetSubJSON(jsonArray []byte, key string) ([]byte, error)
- func ListEntities(items []string, commandType string)
- func PrintPlot(data []float64, plotData PlotData)
- func PullSike() error
- func StateInfo(jsonArray []byte) error
- func TrimQuotes(toTrim []byte) string
- type PlotData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DistrictInfo ¶
StateInfo prints stats about a district of a particular state.
func ExistsString ¶
ExistsString checks if a string is present in a slice of strings.
func ExtractDataPoints ¶
func ExtractDataPoints(dataArray []json.RawMessage, key string) ([]float64, error)
ExtractDataPoints extracts the value of a particular key and returns a float64 slice.
func FormatDate ¶
FormatDate handles the case of '/' being substituted with '\/'
func GetSubJSON ¶
GetSubJSON returns a byte array corresponding to a JSON key.
func ListEntities ¶
BeautifyIndexed prints a lsit of strings alphabetically and numerically indexed.
func PullSike ¶
func PullSike() error
PullSike chooses a different type of sike to pull everytime called.
func TrimQuotes ¶
TrimQuotes removes enclosing quoates in a printable string
Types ¶
Click to show internal directories.
Click to hide internal directories.