Documentation ¶
Index ¶
- Constants
- Variables
- func ABS(src string) string
- func CheckVersion(v string) (e error)
- func HashFile(filename string) (hash string, e error)
- func Rprint(last int, a ...interface{}) int
- func Rprintf(last int, format string, a ...interface{}) int
- func SizeString(size int64) (str string)
- func UnpackTarGzip(src, dst string) (e error)
- func UnpackTarGzipFile(src, name string) (b []byte, e error)
Constants ¶
View Source
const ( // KB . KB = 1024 // MB . MB = 1024 * KB // GB . GB = 1024 * MB // TB . TB = 1024 * GB )
Variables ¶
View Source
var ErrPackageEmpty = errors.New("package can't be empty")
ErrPackageEmpty .
View Source
var ErrVersionName = errors.New("version must be v.X.X.X example v0.0.1 v1.0.0")
ErrVersionName .
Functions ¶
func UnpackTarGzipFile ¶
UnpackTarGzipFile 返回 tar 中 指定檔案 的 數據
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.