Documentation ¶
Index ¶
- func CompL[T any, V any](objs []T, lambda func(x T) V) []V
- func Contains(s []string, str string) bool
- func FileExists(filename utils_types.FilePath) bool
- func Keys[M ~map[K]V, K comparable, V any](m M) []K
- func NewReadFile(filepath utils_types.FilePath, callback func(*FileRead))
- func NewWriteFile(filepath utils_types.FilePath, callback func(*FileWrite))
- func RegenerativeTest(callback func() error) error
- func ReverseSlice(s interface{})
- func ShellRunArgs(program string, args ...string)
- func SleepAwaitCtrlC()
- func SleepForever()
- func StringWithCharset(length int, charset string) string
- func TmpInit(content utils_types.TemplateExpression) *template.Template
- func TmpRender(templateRef *template.Template, data interface{}) string
- func TokenHex(length int) string
- type ErrorNotFound
- type FileRead
- type FileWrite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func FileExists(filename utils_types.FilePath) bool
func Keys ¶
func Keys[M ~map[K]V, K comparable, V any](m M) []K
Keys returns the keys of the map m. The keys will be an indeterminate order.
func NewReadFile ¶
func NewReadFile(filepath utils_types.FilePath, callback func(*FileRead))
func NewWriteFile ¶
func NewWriteFile(filepath utils_types.FilePath, callback func(*FileWrite))
func RegenerativeTest ¶
func ReverseSlice ¶
func ReverseSlice(s interface{})
func ShellRunArgs ¶
func SleepAwaitCtrlC ¶
func SleepAwaitCtrlC()
func SleepForever ¶
func SleepForever()
func StringWithCharset ¶
func TmpInit ¶
func TmpInit(content utils_types.TemplateExpression) *template.Template
Types ¶
type ErrorNotFound ¶
type ErrorNotFound struct { }
func (ErrorNotFound) Error ¶
func (err ErrorNotFound) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.