Documentation ¶
Index ¶
- func CopyFile(src, dst string) bool
- func CopyPath(src, dst string) bool
- func DirDot() string
- func ExecShell(shell string) (stdout string, stderr string)
- func Explode(delimiter, datastr string) (arr []string)
- func FileExists(path string) (bool, error)
- func GetFileInfo(src string) os.FileInfo
- func GetLocalIp() string
- func GetRandStr(n int) (randStr string)
- func JsonEncode(v interface{}, escape bool) string
- func Md5ToString(str string) string
- func RandomCreateBytes(n int, alphabets ...byte) []byte
- func ReadFile(filename string) []byte
- func RemoveFile(filePath string) error
- func ShortTag(longstr string, number int) string
- func Substr(str string, start int, length int) string
- func WriteFile(filePath string, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocalIp ¶ added in v0.3.1
func GetLocalIp() string
func GetRandStr ¶
func JsonEncode ¶ added in v0.2.8
func Md5ToString ¶
func RandomCreateBytes ¶ added in v0.1.3
RandomCreateBytes generate random []byte by specify chars.
func RemoveFile ¶ added in v0.1.6
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.