Documentation ¶
Index ¶
- func Base64Decode(data string) ([]byte, error)
- func Base64Encode(data []byte) string
- func BasePath(path string) string
- func CleanPath(path string) string
- func Copy(srcPath, path string) error
- func Dirname(path string) string
- func Dumps(file *os.File, data []byte) error
- func Error(err string) error
- func Exists(path string) bool
- func Ext(path string) string
- func Format(formatStr string, args ...interface{}) string
- func JoinPath(paths ...string) string
- func JsonDump(i interface{}) string
- func JsonLoad(data []byte, v interface{})
- func Loads(file *os.File) ([]byte, error)
- func Now() float64
- func Outpath(distPath, Url string) string
- func ParseRange(rangeStr string) (uint64, uint64)
- func Printf(format string, args ...interface{})
- func Println(str string)
- func ResourceDir(path string) string
- func ResourceName(path string) string
- func ResourcePath(path string) string
- func Size(httpClient *http.Client, url string) (int64, error)
- type DownInfo
- type Info
- type Speed
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func ParseRange ¶
func ResourceDir ¶
func ResourceName ¶
func ResourcePath ¶
Types ¶
type DownInfo ¶
type Info ¶
type Info struct { Key string `json: key` Url string `json: url` Length int64 `json: length` DownLen int64 `json: downLen` Scale float64 `json: scale` Error string `json: error` Start int64 `json: start` End int64 `json: end` Status int64 `json: status` Output string `json: output` Retry int64 `json: retry` }
Click to show internal directories.
Click to hide internal directories.