Documentation ¶
Index ¶
- Constants
- func CheckConfigFileExist(root, f string) bool
- func CheckFileExist(filename string) bool
- func Dir(pathfile string) string
- func FileNameOfPath(pathfile string) string
- func FindAllDirs(dirPath string) ([]string, error)
- func FindDirs(rootdir string) ([]string, error)
- func FindRootDir() string
- func FindRootDirGoMod() string
- func FindRootPkg() string
- func GetCurPath() string
- func GetPkg(pkgPath string) (*build.Package, error)
- func GetPkgAllFilesPath(pkgPath string) ([]string, error)
- func GetPkgPath(pkgPath string) (string, error)
- func ImportPkg(pkgpath string) (*build.Package, error)
- func ImportPkgDir(pkgpath string) (string, error)
- func LoadGofileUtil() baseiface.ISingleton
- func ReadFileToString(file string) (string, error)
- func ReadSubDirs(rootPath string) ([]string, error)
- func SetRootPkgEnv(p string)
- func TryFileExist(filename string) bool
- func UnZip(zipFile string, destPath string) error
- func WriteBytesFile(filename string, bytes []byte) error
- func Zip(srcPath string, destFile string) error
- type FindFileService
- func (self *FindFileService) Dir() string
- func (self *FindFileService) ExcludeSuffix() string
- func (self *FindFileService) FindFiles() ([]string, error)
- func (self *FindFileService) IncludeSuffix() string
- func (self *FindFileService) SetDir(dir string)
- func (self *FindFileService) SetExcludeSuffix(excludeSuffix string)
- func (self *FindFileService) SetIncludeSuffix(includeSuffix string)
- type GofileUtil
- func (this *GofileUtil) CheckConfigFileExist(root, f string) bool
- func (this *GofileUtil) CheckFileExist(filename string) bool
- func (this *GofileUtil) Dir(pathfile string) string
- func (this *GofileUtil) FindPkgPath(pkg string) string
- func (this *GofileUtil) FindRootDir() string
- func (this *GofileUtil) FindRootDirGoMod() string
- func (this *GofileUtil) FindRootPkg() string
- func (this *GofileUtil) GetCurPath() string
- func (this *GofileUtil) SetRootPkgEnv(p string)
- func (this *GofileUtil) TryFileExist(filename string) bool
- func (this *GofileUtil) UnZip(zipFile string, destPath string) error
- func (this *GofileUtil) Zip(srcPath string, destFile string) error
Constants ¶
View Source
const FILE_GOMOD = "go.mod"
Variables ¶
This section is empty.
Functions ¶
func CheckConfigFileExist ¶
func CheckFileExist ¶
func FileNameOfPath ¶ added in v1.2.91
func FindAllDirs ¶ added in v1.3.13
func FindRootDir ¶
func FindRootDir() string
func FindRootDirGoMod ¶ added in v1.0.60
func FindRootDirGoMod() string
func FindRootPkg ¶ added in v1.0.112
func FindRootPkg() string
func GetCurPath ¶
func GetCurPath() string
func GetPkgAllFilesPath ¶ added in v1.0.91
获取第三方包下所有文件的相对路径
func GetPkgPath ¶ added in v1.0.91
func ImportPkgDir ¶ added in v1.3.7
func LoadGofileUtil ¶ added in v1.3.9
func LoadGofileUtil() baseiface.ISingleton
func ReadFileToString ¶ added in v1.2.5
func ReadSubDirs ¶ added in v1.0.602
func SetRootPkgEnv ¶ added in v1.0.112
func SetRootPkgEnv(p string)
func TryFileExist ¶
func WriteBytesFile ¶ added in v1.2.5
Types ¶
type FindFileService ¶ added in v1.4.128
type FindFileService struct {
// contains filtered or unexported fields
}
func NewFindFileService ¶ added in v1.4.128
func NewFindFileService() *FindFileService
func (*FindFileService) Dir ¶ added in v1.4.128
func (self *FindFileService) Dir() string
func (*FindFileService) ExcludeSuffix ¶ added in v1.4.128
func (self *FindFileService) ExcludeSuffix() string
func (*FindFileService) FindFiles ¶ added in v1.4.128
func (self *FindFileService) FindFiles() ([]string, error)
func (*FindFileService) IncludeSuffix ¶ added in v1.4.128
func (self *FindFileService) IncludeSuffix() string
func (*FindFileService) SetDir ¶ added in v1.4.128
func (self *FindFileService) SetDir(dir string)
func (*FindFileService) SetExcludeSuffix ¶ added in v1.4.128
func (self *FindFileService) SetExcludeSuffix(excludeSuffix string)
func (*FindFileService) SetIncludeSuffix ¶ added in v1.4.128
func (self *FindFileService) SetIncludeSuffix(includeSuffix string)
type GofileUtil ¶ added in v1.3.9
type GofileUtil struct {
basedto.BaseEntitySingle
}
func FindBeanGofileUtil ¶ added in v1.3.9
func FindBeanGofileUtil() *GofileUtil
func NewGofileUtil ¶ added in v1.3.9
func NewGofileUtil() *GofileUtil
func (*GofileUtil) CheckConfigFileExist ¶ added in v1.3.9
func (this *GofileUtil) CheckConfigFileExist(root, f string) bool
func (*GofileUtil) CheckFileExist ¶ added in v1.3.9
func (this *GofileUtil) CheckFileExist(filename string) bool
func (*GofileUtil) Dir ¶ added in v1.3.9
func (this *GofileUtil) Dir(pathfile string) string
func (*GofileUtil) FindPkgPath ¶ added in v1.3.9
func (this *GofileUtil) FindPkgPath(pkg string) string
func (*GofileUtil) FindRootDir ¶ added in v1.3.9
func (this *GofileUtil) FindRootDir() string
func (*GofileUtil) FindRootDirGoMod ¶ added in v1.3.9
func (this *GofileUtil) FindRootDirGoMod() string
func (*GofileUtil) FindRootPkg ¶ added in v1.3.9
func (this *GofileUtil) FindRootPkg() string
func (*GofileUtil) GetCurPath ¶ added in v1.3.9
func (this *GofileUtil) GetCurPath() string
func (*GofileUtil) SetRootPkgEnv ¶ added in v1.3.9
func (this *GofileUtil) SetRootPkgEnv(p string)
func (*GofileUtil) TryFileExist ¶ added in v1.3.9
func (this *GofileUtil) TryFileExist(filename string) bool
Source Files ¶
Click to show internal directories.
Click to hide internal directories.