Documentation ¶
Index ¶
- Variables
- func ByteCountSI(b int64) string
- func Check(e error)
- func CreateDir(name string)
- func FileExists(filename string) bool
- func FolderExists(folder string) bool
- func GenerateRandomString(length int) string
- func GetFileSize(file *os.File) (int64, error)
- func IsInArray(haystack []string, needle string) bool
- func ReadLine() string
- func ReadPassword() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPathDoesNotExist = errors.New("path does not exist")
ErrPathDoesNotExist is raised if the requested path does not exist
View Source
var ErrPathIsNotDir = errors.New("path is not a directoryt")
ErrPathIsNotDir is raised if the requested path is not a directory
Functions ¶
func ByteCountSI ¶
ByteCountSI converts bytes to a human-readable format
func FolderExists ¶
FolderExists returns true if a folder exists
func GenerateRandomString ¶
GenerateRandomString returns a URL-safe, base64 encoded securely generated random string.
func GetFileSize ¶
GetFileSize returns the file size in bytes
func ReadLine ¶
func ReadLine() string
ReadLine reads a line from the terminal and returns it as a string
func ReadPassword ¶
func ReadPassword() string
ReadPassword reads a line without displaying input from the terminal and returns it as a string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.