tools

package
v0.0.0-...-67991ef Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectContentCharset

func DetectContentCharset(body io.Reader) string

func ReadLinesOfFile

func ReadLinesOfFile(filename string) []string

func Reader

func Reader(charset string, input io.Reader) (io.Reader, error)

Reader returns an io.Reader that converts the provided charset to UTF-8.

func SHA1

func SHA1(str string) string

func Shuffle

func Shuffle(vals []string)

func String2Milliseconds

func String2Milliseconds(t string) int

func TimeInMilliseconds

func TimeInMilliseconds() int64

func TimeInNanoseconds

func TimeInNanoseconds() int64

func TimeInSeconds

func TimeInSeconds() int64

func Try

func Try(body func(), handler func(interface{}))

func UUID

func UUID() string

func YYYYMMDD

func YYYYMMDD() string

func YYYYMMDDHH

func YYYYMMDDHH() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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