Documentation ¶
Index ¶
- func Cond[T any](condition bool, primary, fallback T) T
- func ConfigDir(file string) string
- func CopyFile(source string, destinations ...string) error
- func CreateParentDirs(dest string) error
- func DataDir(file string) string
- func FileExists(file string) bool
- func MergeToFile(lines []string, file string, sortFunc func(s1, s2 string) bool) error
- func NewTmpCachePath() string
- func ReadFileToLines(file string) ([]string, error)
- func RemoveDuplicates[T comparable](slice []T) []T
- func WriteFile(content string, destinations ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateParentDirs ¶
func FileExists ¶
func MergeToFile ¶
func NewTmpCachePath ¶
func NewTmpCachePath() string
func ReadFileToLines ¶
func RemoveDuplicates ¶
func RemoveDuplicates[T comparable](slice []T) []T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.