Documentation ¶
Index ¶
- Constants
- func Exist(filesPath string) bool
- func FormatBytesProgress(bytesCompleted, totalLength int64) string
- func FormatDuration(duration time.Duration) string
- func GetDateTime() string
- func GetDefaultDownloadFolder() (string, error)
- func GetHomeDir() (string, error)
- func OpenDirectory(dir string) error
- type Size
Constants ¶
View Source
const ( KB = 1 << (10 * iota) // 1024 MB GB TB )
Variables ¶
This section is empty.
Functions ¶
func FormatBytesProgress ¶
FormatBytesProgress formats the bytes completed and total length into a string representation with the appropriate suffix.
func FormatDuration ¶
FormatDuration formats a duration in a human-readable format.
func GetDateTime ¶
func GetDateTime() string
GetDateTime returns the current date and time formatted as "DD/MM/YYYY HH:MM:SS".
func GetHomeDir ¶
func OpenDirectory ¶
OpenDirectory opens the given directory in the default file manager. (macos, linux, windows)
Types ¶
Click to show internal directories.
Click to hide internal directories.