util

package
v0.0.0-...-eb961a3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2016 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElapsedTimeSince

func ElapsedTimeSince(t time.Time) int64

func Fingerprint

func Fingerprint(a string, b string) string

func GetJson

func GetJson(url string, target interface{}) error

func IncT

func IncT(t int64, m int) int64

func NormalizeSearchString

func NormalizeSearchString(s string) string

func PostJson

func PostJson(url string, body interface{}, response interface{}) error

func PrettyPrintJson

func PrettyPrintJson(target interface{})

func PutJson

func PutJson(url string, target interface{}) error

func Random

func Random(max int) int

func RandomPlusMinus

func RandomPlusMinus(max int) int

func Timestamp

func Timestamp() int64

func TimestampToUTC

func TimestampToUTC(t int64) string

func UID

func UID(a string) string

func UUID

func UUID() (string, error)

citation: http://play.golang.org/p/4FkNSiUDMg

func ValidateUrl

func ValidateUrl(url string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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