Documentation ¶
Index ¶
- func Base64Decode(encoded string) ([]byte, error)
- func Base64Encode(source []byte) string
- func CompareVersion(versionA, versionB *Semver) bool
- func DESDecrypt(encrypted []byte, secret []byte) (result []byte, err error)
- func DESEncrypt(source []byte, secret []byte) ([]byte, error)
- func Decrypt(encoded string, secret []byte) (string, error)
- func Encrypt(source []byte, secret []byte) (string, error)
- func FileMustExist(path string) (err error)
- func GetExecutablePathAndDir() (path, dir string, err error)
- func GetHomeDir() (string, error)
- func IsFileExist(path string) bool
- func IsNetworkError(err error) bool
- func MatchMultiple(re *regexp.Regexp, content string) ([][]string, error)
- func MatchSingle(re *regexp.Regexp, content string) (string, error)
- func ReadBody(resp *http.Response) (body string)
- func Unzip(zipFile string, destDir string) error
- type Semver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func CompareVersion ¶ added in v0.2.0
CompareVersion compares strings like "v1.1.1", returns true when versionA > versionB
func FileMustExist ¶
func GetExecutablePathAndDir ¶
func GetHomeDir ¶
func IsFileExist ¶
func IsNetworkError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.