Version: v2.0.0 Latest Latest

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

Go to latest
Published: Feb 15, 2019 License: GPL-3.0 Imports: 3 Imported by: 0




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


This section is empty.


func Abs

func Abs(a int64) int64

Abs returns two's complement 64 bit absolute value

func Exists

func Exists(path string) (bool, error)

Exists returns true if file or directory exists

func IsIP

func IsIP(ip string) bool

IsIP returns true if string is a valid IP address

func Max

func Max(a int, b int) int

Max returns the larger of two integers

func Min

func Min(a int, b int) int

Min returns the smaller of two integers

func Round

func Round(f float64) int64

Round returns rounded int64

func StringInSlice

func StringInSlice(value string, list []string) bool

StringInSlice returns true if the string is an element of the array


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)

Source Files

Jump to

Keyboard shortcuts

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