Versions in this module Expand all Collapse all v0 v0.8.0 Jun 21, 2018 Changes in this version + const ByteSize + const GigaByteSize + const KiloByteSize + const MegaByteSize + const StringEmpty + const TeraByteSize + var ErrBase64Decode = errors.New("encoding/base64: decode error") + var ErrDirNotInGoPath = errors.New("current directory is outside of GOPATH") + var ErrGoPathIsNotSet = errors.New(...) + var FmtFlagSeparator = "%" + var FmtFlagValueSeparator = ":" + var Version = "0.8.0" + func ApplyFileMode(target string, mode os.FileMode) error + func CloseQuietly(c ...interface{}) + func CopyDir(dest, src string, excludes Excludes) error + func CopyFile(dest, src string) (int64, error) + func DecodeBase64(v []byte) ([]byte, error) + func DeleteFiles(files ...string) (errs []error) + func DirsPath(basePath string, recursive bool) (pdirs []string, err error) + func DirsPathExcludes(basePath string, recursive bool, excludes Excludes) (pdirs []string, err error) + func EncodeToBase64(v []byte) []byte + func FilesPath(basePath string, recursive bool) (files []string, err error) + func FilesPathExcludes(basePath string, recursive bool, excludes Excludes) (files []string, err error) + func GenerateRandomKey(length int) []byte + func GenerateSecureRandomKey(length int) []byte + func GoPath() (string, error) + func IsAbsURL(rawurl string) bool + func IsDir(path string) bool + func IsDirEmpty(path string) bool + func IsFileExists(filename string) bool + func IsImportPathExists(path string) bool + func IsInGoRoot(path string) bool + func IsRelativeURL(rawurl string) bool + func IsSliceContainsString(strSlice []string, search string) bool + func IsStrEmpty(v string) bool + func IsVaildURL(rawurl string) bool + func LineCnt(fileName string) int + func LineCntr(r io.Reader) int + func LookExecutable(name string) bool + func MkDirAll(path string, mode os.FileMode) error + func NewGUID() string + func RandomString(length int) string + func SecureRandomString(length int) string + func StrToBytes(value string) (int64, error) + func StripExt(name string) string + func Walk(srcDir string, walkFn filepath.WalkFunc) error + func Zip(dest, src string) error + type CallerInfo struct + File string + FileName string + FunctionName string + Line int + QualifiedName string + func GetCallerInfo() *CallerInfo + type Excludes []string + func (e *Excludes) Match(file string) bool + func (e *Excludes) Validate() error + type FmtFlag uint8 + type FmtFlagPart struct + Flag FmtFlag + Format string + Name string + func ParseFmtFlag(pattern string, fmtFlags map[string]FmtFlag) ([]FmtFlagPart, error) + type FunctionInfo struct + Name string + Package string + QualifiedName string + func GetFunctionInfo(f interface{}) (fi *FunctionInfo) + type Valuer interface + Get func(key string) interface{} + Set func(key string, value interface{})