Documentation ¶
Index ¶
- func CheckNotExist(src string) bool
- func CopySingleFile(src, dst, style string) error
- func CreateFile(path string) error
- func Exists(path string) bool
- func GetExt(fileName string) string
- func GetImageExt(p string) (string, error)
- func GetImageExtByName(p string) (string, error)
- func ImageExtArray() []string
- func IsNotExistCreateFile(src string) error
- func IsNotExistMkDir(src string) error
- func MkDir(src string) error
- func ReadFullFile(path string) []byte
- func WriteToPath(data []byte, path, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckNotExist ¶
func CopySingleFile ¶
*
- @description:
- @param {*} src
- @param {*} dst
- @param {string} style
- @return {*}
- @method:
- @router:
func CreateFile ¶
func GetImageExt ¶
* * @description:get a image's ext * @param {string} path "file path" * @return {string} ext "file ext" * @return {error} err "error info"
func GetImageExtByName ¶
func ImageExtArray ¶
func ImageExtArray() []string
func IsNotExistCreateFile ¶
IsNotExistMkDir create a directory if it does not exist
func IsNotExistMkDir ¶
IsNotExistMkDir create a directory if it does not exist
func ReadFullFile ¶
func WriteToPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.