Documentation
¶
Index ¶
- func CreateEmptyFile(path string) (err error)
- func CreateFile(path string) (err error)
- func Executable() (exe string)
- func FileBase(path string, ext string) string
- func FilterDirectories(paths []string) []string
- func Get[E comparable](v E, fallback E) E
- func GetIndex[S ~[]E, E any](s S, index int, fallback E) E
- func Getwd() string
- func MakeDirnameAvailableValidator(parentDir string) func(string) error
- func PanicIfError(err error)
- func PanicIfFalse(condition bool, message string)
- func PanicIfPathDoesNotExist(path string)
- func PanicIfPathExists(path string)
- func PanicIfTrue(condition bool, message string)
- func PathExists(filename string) bool
- func PathIsDir(filename string) bool
- func PathIsFile(filename string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEmptyFile ¶
func CreateFile ¶
func Executable ¶
func Executable() (exe string)
func FilterDirectories ¶
func Get ¶
func Get[E comparable](v E, fallback E) E
func PanicIfError ¶
func PanicIfError(err error)
func PanicIfFalse ¶
func PanicIfPathDoesNotExist ¶
func PanicIfPathDoesNotExist(path string)
func PanicIfPathExists ¶
func PanicIfPathExists(path string)
func PanicIfTrue ¶
func PathExists ¶
func PathIsFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.