Documentation
¶
Index ¶
- Constants
- func CleanPath(fp string) string
- func DeleteAllImages(imgDir string) error
- func DeleteImage(imagePath string) error
- func DiskspaceAvailable(bytes int) bool
- func ExpandHome(relPath string) string
- func ExpandRel(relPath, absPath string) string
- func GetImgIdentifier(filename string) string
- func GetStdin() string
- func GetTime() string
- func GetTimeStamp() string
- func HandleError(err error)
- func IsInt(arg string) bool
- func LogERROR(message string)
- func LogINFO(message string)
- func LogWARN(message string)
- func ParseDuration(s string) (*time.Duration, error)
- func SanitizeChars(s string) string
- func SetUpLogger(logFilePath string)
- func Shorten(s string, maxChar int) string
Constants ¶
View Source
const (
DateLayout = "2006-01-02 15:04:05.999999999"
)
Variables ¶
This section is empty.
Functions ¶
func DeleteAllImages ¶ added in v1.1.1
func DeleteImage ¶ added in v1.1.1
func DiskspaceAvailable ¶ added in v1.1.1
func ExpandHome ¶ added in v0.0.7
Expands the path to include the home directory if the path is prefixed with `~`. If it isn't prefixed with `~`, the path is returned as-is.
func GetImgIdentifier ¶ added in v1.0.3
func GetTimeStamp ¶ added in v1.0.3
func GetTimeStamp() string
func HandleError ¶
func HandleError(err error)
func SanitizeChars ¶ added in v1.2.1
func SetUpLogger ¶ added in v0.1.0
func SetUpLogger(logFilePath string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.