Documentation ¶
Index ¶
- func CopyFile(src, dest string) error
- func Download(urlStr, filename string) (err error)
- func DownloadTo(urlStr, saveDir string) (filename string, err error)
- func IsDir(dir string) bool
- func IsFile(filename string) bool
- func Random(n int) []byte
- func RandomString(n int) string
- func Stringify(v interface{}) string
- func UriToPath(uri string) (file string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadTo ¶
DownloadTo 下载到目录
func Random ¶
Random takes a parameter (int) and returns random slice of byte ex: var randomstrbytes []byte; randomstrbytes = utils.Random(32)
func RandomString ¶
RandomString accepts a number(10 for example) and returns a random string using simple but fairly safe random algorithm
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.