util

package
v0.0.0-...-7cb0e1f Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMapKeys

func GetMapKeys(inputMap map[string][]byte) []string

Helper for fetching keys in a map

func GetMemberID

func GetMemberID(suffix string) string

func MD5Hash

func MD5Hash(data string, length int) string

func RandomString

func RandomString(n int, seed bool) string

From @stackoverflow; generate an optionally seeded, N length random string

func SplitTags

func SplitTags(tags string) []string

func StringSliceContains

func StringSliceContains(stringSlice []string, data string) bool

func StringSliceInStringSlice

func StringSliceInStringSlice(s1, s2 []string) bool

Return true if ANY element in s1 appears in s2, otherwise return false

Types

type CustomDuration

type CustomDuration time.Duration

func (*CustomDuration) MarshalJSON

func (cd *CustomDuration) MarshalJSON() ([]byte, error)

func (*CustomDuration) String

func (cd *CustomDuration) String() string

func (*CustomDuration) UnmarshalJSON

func (cd *CustomDuration) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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