Documentation ¶
Index ¶
Constants ¶
View Source
const DayFormat string = "2006-01-02"
DayFormat stores a correctly formatted timestamp for the day
View Source
const TimeFormat string = "2006-01-02-T15:04:05-0700"
TimeFormat stores a correctly formatted timestamp
Variables ¶
This section is empty.
Functions ¶
func StringInSlice ¶
StringInSlice returns true if the string is an element of the array
Types ¶
type ByStringLength ¶
type ByStringLength []string
ByStringLength Functions that, in combination with golang sort, allow users to sort a slice/list of strings by string length (shortest -> longest)
func (ByStringLength) Len ¶
func (s ByStringLength) Len() int
func (ByStringLength) Less ¶
func (s ByStringLength) Less(i, j int) bool
func (ByStringLength) Swap ¶
func (s ByStringLength) Swap(i, j int)
type SortableInt64 ¶
type SortableInt64 []int64
SortableInt64 functions that allow a golang sort of int64s
func (SortableInt64) Len ¶
func (s SortableInt64) Len() int
func (SortableInt64) Less ¶
func (s SortableInt64) Less(i, j int) bool
func (SortableInt64) Swap ¶
func (s SortableInt64) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.