Versions in this module Expand all Collapse all v0 v0.5.1 Nov 23, 2018 Changes in this version + const DegToRad + const RadToDeg + func Add(x, y int) int + func ConcatURL(url, path string) string + func ElapsedSec(lastTimestamp int64, elapsedTime int64) bool + func FormattedDateUTC(t time.Time) string + func FuzzyTimeStr(duration time.Duration) string + func GetDistanceKm(lat1, lon1, lat2, lon2 float32) float32 + func Hostname() string + func IsAdditionalCountry(clientInfo network.GeoIPRecord, list []string) bool + func IsInSlice(a string, list []string) bool + func IsPrimaryCountry(clientInfo network.GeoIPRecord, list []string) bool + func IsStopped(stop <-chan struct{}) bool + func Max(v1, v2 int) int + func Min(v1, v2 int) int + func NormalizeURL(url string) string + func Plural(value interface{}) string + func ReadableSize(value int64) string + func SanitizeLocationCodes(input string) string + func TimeKeyCoverage(start, end time.Time) (dates []string) + func Version() string