Documentation ¶
Overview ¶
Package utils provides a set of helper functions for your application
Index ¶
- func Array(values ...string) []string
- func ArrayRemove(s []string, r string) []string
- func Dict(k string, v string) (ret map[string]string)
- func InArray(a string, list []string) bool
- func InIntArray(a int, list []int) bool
- func InterfaceMap() (ret map[string]interface{})
- func RandStringRunes(n int) string
- func RandomFloat() float32
- func ReplaceTokenInFile(file string, find string, replaceWith string)
- func TalkDirty(sayWhat string)
- func TalkDirtySlowly(sayWhat string)
- func TalkDirtyToMe(sayWhat string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayRemove ¶
ArrayRemove removes an item from a slice of strings
func InIntArray ¶
InIntArray returns true if the int is in the slice of ints
func InterfaceMap ¶
func InterfaceMap() (ret map[string]interface{})
InterfaceMap is a function that returns a map of interfaces
func RandStringRunes ¶
RandStringRunes returns a random string of length n
func ReplaceTokenInFile ¶
ReplaceTokenInFile replaces a token in a file with a find/replace value
func TalkDirty ¶
func TalkDirty(sayWhat string)
TalkDirty is a function that uses say command (linux or mac only if installed) to talk to you in development while your code is running
func TalkDirtySlowly ¶
func TalkDirtySlowly(sayWhat string)
TalkDirtySlowly is a function that uses say (linux or mac only if installed) command to talk to you in development while your code is running, but will wait for the previous say to finish before starting the next line of code
func TalkDirtyToMe ¶
func TalkDirtyToMe(sayWhat string)
TalkDirtyToMe is a function that uses say command (linux or mac only if installed) to talk to you in development while your code is running
Types ¶
This section is empty.