Documentation ¶
Index ¶
- func EmptyOrDefault[T any](s []T, defaultValue T) (t T)
- func If[T any](cond bool, onTrue T, onFalse T) T
- func MustReadStringFromFile(path string) string
- func MustWriteStringToFile(path string, content string)
- func PathExists(path string) (bool, error)
- func ReadStringFromFile(path string) (string, error)
- func SafeIndexValueOrDefault[T any](s []T, idx int) (t T)
- func WriteStringToFile(path string, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyOrDefault ¶
func EmptyOrDefault[T any](s []T, defaultValue T) (t T)
func MustReadStringFromFile ¶
func MustWriteStringToFile ¶
func PathExists ¶
func ReadStringFromFile ¶
func SafeIndexValueOrDefault ¶
func WriteStringToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.