Documentation ¶
Index ¶
- Constants
- func ComparePasswords(hashedPwd string, plainPwd []byte) bool
- func DB64(s string) string
- func DetectContentCharset(body io.Reader) string
- func EB64(s string) string
- func HashAndSalt(password string) (string, error)
- func If(condition bool, t interface{}, f interface{}) interface{}
- func PrimitiveArrayContains(array interface{}, element interface{}) int
- func ReadLinesOfFile(filename string) ([]string, error)
- func Reader(charset string, input io.Reader) (io.Reader, error)
- func SHA1(str string) string
- func Shuffle(vals []string)
- func String2Milliseconds(t string) int
- func TimeInMilliseconds() int64
- func TimeInNanoseconds() int64
- func TimeInSeconds() int64
- func Try(body func(), handler func(interface{}))
- func UUID() string
- func YYYYMMDD() string
- func YYYYMMDDHH() string
Constants ¶
View Source
const ( ModeGet = "get" ModePost = "post" ModePut = "put" ModeDelete = "delete" )
Variables ¶
This section is empty.
Functions ¶
func ComparePasswords ¶
func DetectContentCharset ¶
DetectContentCharset try to guess the charset of the given reader
func HashAndSalt ¶
func PrimitiveArrayContains ¶
func PrimitiveArrayContains(array interface{}, element interface{}) int
func ReadLinesOfFile ¶
ReadLinesOfFile open a file and split it into lines
func String2Milliseconds ¶
String2Milliseconds return a timestamp in milliseconds given a humanize time (e.g. 1s, 1h ...)
func TimeInMilliseconds ¶
func TimeInMilliseconds() int64
TimeInMilliseconds return a timestamp in milliseconds
func TimeInNanoseconds ¶
func TimeInNanoseconds() int64
TimeInNanoseconds return a timestamp in nanoseconds
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.