Documentation ¶
Overview ¶
source: https://yourbasic.org/golang/formatting-byte-size-to-human-readable-format/
Index ¶
- func ByteCountIEC(b int64) string
- func ByteCountSI(b int64) string
- func DownloadWithProgress(url string, path string) error
- func GetBucketDownloadDomain(bucket string, mgr *storage.BucketManager) (string, error)
- func Upload(cmd *cobra.Command, bucket, key, path string, credential *auth.Credentials) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteCountIEC ¶
func ByteCountSI ¶
func DownloadWithProgress ¶
func GetBucketDownloadDomain ¶
func GetBucketDownloadDomain(bucket string, mgr *storage.BucketManager) (string, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.