Documentation
¶
Index ¶
- Constants
- func CheckIfError(err error)
- func CheckIfErrorWithMessage(err error, message string)
- func ColorPrint(message string, color string)
- func ColorPrintf(color string, format string, a ...any)
- func ColorPrintfn(color string, format string, a ...any)
- func ColorPrintln(message string, color string)
- func CopyFile(src, dst string) error
- func CopyFileToDir(src, dst string) error
- func EnsureDir(dirName string) error
- func ExpandPath(path string) (string, error)
- func IsDir(path string) bool
- func IsFile(file string) bool
- func IsFileErr(file string) (bool, error)
- func NormalizeLineEndings(content string) string
- func PathExists(path string) bool
- func SColor(message string) string
- func SColorPrint(message string, color string) string
- func SColorPrintf(format string, a ...any) string
- func SColorPrintln(message string, color string) string
- func WriteTextFileLF(path, content string, perm os.FileMode) error
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func CheckIfError ¶
func CheckIfError(err error)
func CheckIfErrorWithMessage ¶
func ColorPrint ¶
func ColorPrintf ¶
func ColorPrintfn ¶
func ColorPrintln ¶
func CopyFileToDir ¶
func EnsureDir ¶
EnsureDir creates a directory if it does not exist. The dirName parameter should only contain the directory path and should not include the filename.
func ExpandPath ¶
func NormalizeLineEndings ¶ added in v0.0.47
NormalizeLineEndings converts CRLF and bare CR line endings to LF.
func PathExists ¶
func SColorPrint ¶
func SColorPrintf ¶
func SColorPrintln ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.