Documentation ¶
Overview ¶
Package utils provides utility functions.
This is bad practice to name like this. I know.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomString ¶
GenerateRandomString generates a random string of length n.
func MockRandomString ¶
func MockRandomString(s string)
MockRandomString mocks the random string generation.
func MustJSONEncode ¶
MustJSONEncode encodes the value to JSON or panic.
func OverrideRandSource ¶
OverrideRandSource overrides the random source.
func SanitizeFilename ¶
SanitizeFilename sanitizes the filename.
Types ¶
This section is empty.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package channel describes functions for working with channels.
|
Package channel describes functions for working with channels. |
Package ptr provides a simple way to get the pointer of a value.
|
Package ptr provides a simple way to get the pointer of a value. |
Package secret provides a way to read user credentials.
|
Package secret provides a way to read user credentials. |
Package try provides a set of functions to retry a function with a delay.
|
Package try provides a set of functions to retry a function with a delay. |
Click to show internal directories.
Click to hide internal directories.