Versions in this module Expand all Collapse all v0 v0.1.7 Mar 20, 2022 Changes in this version + const DEFAULT_UNZIP_LIMIT + var ErrUserQuit = errors.New("quit by user") + func ApplicationName() string + func CleanFileName(parent, name string) string + func DoListDir(dirPth string, suffix string, f func(fileName string) error) error + func DoListDirEx(dirPth string, suffix string, f func(fullpath string, fileName string) error) error + func DoWalkDir(dirPth, suffix string, f func(fileName string, isdir bool) error) error + func GetExternalIP() (string, error) + func GetHostIP() (string, error) + func GetInternalIP() (string, error) + func GetInternalIPByDevName(dev string) ([]string, error) + func GetLocalConnectIP(proto string, addr string) (string, error) + func GetRequestIP(r *http.Request) string + func GetUploadFileSize(upfile multipart.File) (int64, error) + func Index(s, substr string, start int) int + func Inet_aton(ipnr net.IP) int64 + func Inet_ntoa(ipnr int64) net.IP + func IsPublicIP(IP net.IP) bool + func ListDir(dirPth string, suffix string, ch chan<- string) error + func MultiCopy(src io.Reader, writers ...io.Writer) (written int64, err error) + func PathExists(filename string) bool + func PathExists2(filename string) (bool, error) + func ScanZip(archive, tmpDir string, sizeLimit uint64, scanCall func(filename string) error) error + func ScanZipM(archive string, sizeLimit uint64, scanCall func(f *zip.File) error) error + func TempFileName(dir, prefix string) (string, error) + func Unzip(src, dest string) error + func UnzipSafe(archive, target string, sizeLimit uint64) error + func WalkDir(dirPth, suffix string, ch chan<- string) error + func WildcardCmp(txt, pattern string) bool + func ZipSize(zipR *zip.ReadCloser) uint64 + type Size interface + Size func() int64 + type Stat interface + Stat func() (os.FileInfo, error) + type VersionInt struct + Build string + Major int + Minor int + Revision int + func NewVersionInt(verstr string, sepStr string) VersionInt + func (v *VersionInt) Compatible(nv *VersionInt) bool + func (v *VersionInt) Equal(nv *VersionInt) bool + func (v *VersionInt) GreatThan(nv *VersionInt) bool + func (v *VersionInt) LessThan(nv *VersionInt) bool