Documentation ¶
Index ¶
- func EnsureDir(fp string) error
- func FormatBytes(size int64) string
- func FormatPath(p string) string
- func GetFilesMimeByFileName(filepath string) string
- func GetFilesMimeByFp(fp multipart.File) string
- func InsureDir(path string) error
- func Md5(filename string) (string, error)
- func Md5ForBig(filename string) (string, error)
- func Md5ForBigWithStream(openfile File) (string, error)
- func Md5WithStream(openfile File) (string, error)
- func MustOpenFile(fp string) *os.File
- func PackageName(v any) string
- func ReadLine(r *bufio.Reader) ([]byte, error)
- func SearchFile(filename string, paths ...string) (fullPath string, err error)
- func SelfDir() string
- func SelfPath() string
- func Sha1(filename string) (string, error)
- func Sha1ForBig(filename string) (string, error)
- func Sha1ForBigWithStream(openfile File) (string, error)
- func Sha1WithStream(openfile File) (string, error)
- func StructName(name any) string
- func StructRealName(name any) string
- func ToBytes(filePath string) ([]byte, error)
- func ToInt64(filePath string) (int64, error)
- func ToString(filePath string) (string, error)
- func ToTrimString(filePath string) (string, error)
- func ToUint64(filePath string) (uint64, error)
- func WriteBytes(filePath string, b []byte) (n int, err error)
- func WriteFile(filename string, contents string, flag ...int) (int, error)
- func WriteString(filePath string, s string) (int, error)
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SearchFile ¶
在目录里搜索文件
func ToTrimString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.