Documentation
¶
Index ¶
- func ContainsFolderName(path string, names ...string) bool
- func FileExists(path string) bool
- func FileSizeFromPath(path string) (width, height int)
- func Info(msg string, args ...interface{})
- func InfoErr(msg string, args ...interface{})
- func InitPB(count int) *pb.ProgressBar
- func IsDir(path string) bool
- func IsHTTP(path string) bool
- func IsImage(path string) (ok bool)
- func TempDir() string
- func UsageAndExit(message string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsFolderName ¶ added in v0.3.1
ContainsFolderName checks if path contains a name. A name will be prepended with an OS specific path separator, e.g.: .svn becomes /.svn
func FileExists ¶ added in v0.6.0
FileExists returns true if file exists
func FileSizeFromPath ¶
func InitPB ¶ added in v0.4.0
func InitPB(count int) *pb.ProgressBar
InitPB initializes a progress bar for the terminal
func IsImage ¶
IsImage checks if path to a file is an image by extracting the file extension and checking it against an internal list.
func TempDir ¶ added in v0.4.0
func TempDir() string
TempDir returns temporary directory ending with a path separatoe
func UsageAndExit ¶
func UsageAndExit(message string, args ...interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.