util

package module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearTermLines

func ClearTermLines(n int)

ClearTermLines navigates up n number of lines and clears terminal leaving cursor on topmost cleared lined.

func Cwd

func Cwd() string

func Duration

func Duration(duration time.Duration, n int8) time.Duration

func InitDebugLogging

func InitDebugLogging()

func InitLogging

func InitLogging()

func InitLoggingWithLevel

func InitLoggingWithLevel(minLevel string)

func IsDebug

func IsDebug() bool

func IsDir

func IsDir(path string) bool

func IsFile

func IsFile(path string) bool

func IsFlagEnabled

func IsFlagEnabled(key string) bool

func PluralPrint

func PluralPrint(s string, n int) string

func Seconds

func Seconds(n int8) time.Duration

func SinglePrintIes

func SinglePrintIes(s string, n int) string

func Subdirectories

func Subdirectories(dir string, scanDepth int) []string

func TrimRelativePathPrefix

func TrimRelativePathPrefix(p string) string

TrimRelativePathPrefix will remove the first character of a string until all relative path prefix chars have been trimmed.

func WriteFile

func WriteFile(absPath string, bytes []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址