Documentation ¶
Index ¶
- Constants
- func GetDirFiles(dir string) []string
- func GetFileName(path string) string
- func GetFileSize(size int64) interface{}
- func InitBucket(ossConfig config.OssConfig) *oss.Bucket
- func IsDir(path string) bool
- func IsFileExist(path string) bool
- func PrintInMarkdownFormat(resultMap map[string]string)
- func PrintInTextPlain(resultMap map[string]string)
- func UploadFile(ossPath string, localFilePath string, config config.OssConfig, ...) (string, string)
- func ValidateConfig(ossConfig config.OssConfig) bool
- type OssProgressListener
Constants ¶
View Source
const G = M * 1024
View Source
const K = 1024
View Source
const M = 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
func GetDirFiles ¶
func PrintInMarkdownFormat ¶
func PrintInTextPlain ¶
Types ¶
type OssProgressListener ¶
type OssProgressListener struct { }
定义进度条监听器。
func (*OssProgressListener) ProgressChanged ¶
func (listener *OssProgressListener) ProgressChanged(event *oss.ProgressEvent)
定义进度变更事件处理函数。
Click to show internal directories.
Click to hide internal directories.