Documentation ¶
Index ¶
- type FileInfo
- type Filter
- func (f *Filter) Depth(val int) *Filter
- func (f *Filter) ExcludeAllDir() *Filter
- func (f *Filter) GetFileInfosByDir(dir *FileInfo) []IFileInfo
- func (f *Filter) GetFileInfosByPath(path string) []IFileInfo
- func (f *Filter) IgnoreDir(dir string) *Filter
- func (f *Filter) IncludeSuffix(val ...string) *Filter
- func (f *Filter) MatchName(regexp *regexp.Regexp) *Filter
- func (f *Filter) Recursive() *Filter
- func (f *Filter) Validator(v func(ifile IFileInfo) bool) *Filter
- type IFileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileInfo ¶
func NewFileInfo ¶
NewFileInfo 新建一个FileInfo
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
func (*Filter) ExcludeAllDir ¶
func (*Filter) GetFileInfosByDir ¶
func (*Filter) GetFileInfosByPath ¶
func (*Filter) IncludeSuffix ¶
指定后缀[.suffix, ...]
Click to show internal directories.
Click to hide internal directories.