Documentation ¶
Index ¶
- func ExtractJSON(s string) string
- func GetFunctionName(i interface{}) string
- func HandlePanic(r interface{}) error
- func PickRandomString(strs ...string) string
- func RoundFloat(val float64, precision uint) float64
- func StringInSlice(a string, list []string) bool
- func StringToChunks(s string, chunkSize int) []string
- func SubtractInt(ints ...int) int
- func SubtractIntWithMinimum(min int, ints ...int) int
- func Testing() bool
- func TickerOrDefault(d time.Duration, def time.Duration) *time.Ticker
- func Truncate(s string, n int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractJSON ¶
func GetFunctionName ¶
func GetFunctionName(i interface{}) string
func HandlePanic ¶
func HandlePanic(r interface{}) error
func PickRandomString ¶
func RoundFloat ¶
func StringInSlice ¶
func StringToChunks ¶
StringToChunks splits a string into chunks of a given size Not very efficient, and very ugly, but it works
func SubtractInt ¶
func SubtractIntWithMinimum ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.