Documentation ¶
Index ¶
- Constants
- func CheckConfigFileExist(path, file string) bool
- func CheckDirExist(path string) bool
- func CheckFileExist(filename string) bool
- func Dir(pathfile string) string
- func FindAllDirs(dirPath string) ([]string, error)
- func FindAllFiles(dirPath string) ([]string, error)
- func FindDirs(rootdir string) ([]string, error)
- func FindRootDir() string
- func FindRootDirGoMod() string
- func FindRootDirGoModFile() (string, error)
- func FindRootMod() error
- func FindRootPkg() string
- func GetCurPath() string
- func MakedirAll(path string) error
- func ReadFileToString(file string) (string, error)
- func Save2File(file string, proxy any) error
- func SetRootPkgEnv(p string)
- 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)
Constants ¶
View Source
const FILE_GOMOD = "go.mod"
Variables ¶
This section is empty.
Functions ¶
func CheckConfigFileExist ¶
func CheckDirExist ¶
func CheckFileExist ¶
func FindAllDirs ¶
func FindAllFiles ¶
func FindRootDir ¶
func FindRootDir() string
func FindRootDirGoMod ¶
func FindRootDirGoMod() string
func FindRootDirGoModFile ¶
func FindRootMod ¶
func FindRootMod() error
func FindRootPkg ¶
func FindRootPkg() string
func GetCurPath ¶
func GetCurPath() string
func MakedirAll ¶
func ReadFileToString ¶
func SetRootPkgEnv ¶
func SetRootPkgEnv(p string)
func WriteBytesFile ¶
Types ¶
type FindFileService ¶
type FindFileService struct {
// contains filtered or unexported fields
}
func NewFindFileService ¶
func NewFindFileService() *FindFileService
func (*FindFileService) Dir ¶
func (self *FindFileService) Dir() string
func (*FindFileService) ExcludeSuffix ¶
func (self *FindFileService) ExcludeSuffix() string
func (*FindFileService) FindFiles ¶
func (self *FindFileService) FindFiles() ([]string, error)
func (*FindFileService) IncludeSuffix ¶
func (self *FindFileService) IncludeSuffix() string
func (*FindFileService) SetDir ¶
func (self *FindFileService) SetDir(dir string)
func (*FindFileService) SetExcludeSuffix ¶
func (self *FindFileService) SetExcludeSuffix(excludeSuffix string)
func (*FindFileService) SetIncludeSuffix ¶
func (self *FindFileService) SetIncludeSuffix(includeSuffix string)
Click to show internal directories.
Click to hide internal directories.