Documentation ¶
Index ¶
- Variables
- type FileNamesCollection
- func (filesNamesCollection *FileNamesCollection) Add(fileName string) *FileNamesCollection
- func (filesNamesCollection *FileNamesCollection) AddWrapper(wrapper Wrapper) *FileNamesCollection
- func (filesNamesCollection *FileNamesCollection) GetFilePaths(separator string) *[]string
- func (filesNamesCollection *FileNamesCollection) HasParentWrappers() bool
- func (filesNamesCollection *FileNamesCollection) IsContains(fileName string, isCaseSensitive bool) bool
- func (filesNamesCollection *FileNamesCollection) IsEmpty() bool
- func (filesNamesCollection *FileNamesCollection) IsParentWrappersEmpty() bool
- func (filesNamesCollection *FileNamesCollection) Length() int
- func (filesNamesCollection *FileNamesCollection) OnlyNamesCollection() *[]string
- func (filesNamesCollection *FileNamesCollection) ParentWrappers() *Wrappers
- type PathsCollection
- func NewPaths(rootPath, separator string, capacity int) *PathsCollection
- func NewPathsUsing(directoryPath, separator string, isNormalize bool) *PathsCollection
- func NewPathsUsingPaths(rootPath, separator string, recursivePaths *[]string) *PathsCollection
- func NewPathsUsingWrappers(rootPath, separator string, wrappers *Wrappers) *PathsCollection
- func (pathsCollection *PathsCollection) Add(wrapper *SimplePathWrapper) *PathsCollection
- func (pathsCollection *PathsCollection) AddPtr(wrapper *SimplePathWrapper) *PathsCollection
- func (pathsCollection *PathsCollection) AddWrapper(pathWrapper *SimplePathWrapper) *PathsCollection
- func (pathsCollection *PathsCollection) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector
- func (pathsCollection *PathsCollection) AsJsoner() corejson.Jsoner
- func (pathsCollection *PathsCollection) Directories() *[]string
- func (pathsCollection *PathsCollection) Files() *[]string
- func (pathsCollection *PathsCollection) HasParentWrappers() bool
- func (pathsCollection *PathsCollection) IsEmpty() bool
- func (pathsCollection *PathsCollection) IsParentWrappersEmpty() bool
- func (pathsCollection *PathsCollection) Json() *corejson.Result
- func (pathsCollection *PathsCollection) JsonModel() *PathsCollectionDataModel
- func (pathsCollection *PathsCollection) JsonModelAny() interface{}
- func (pathsCollection *PathsCollection) JsonParseSelfInject(jsonResult *corejson.Result) error
- func (pathsCollection *PathsCollection) Length() int
- func (pathsCollection *PathsCollection) MarshalJSON() ([]byte, error)
- func (pathsCollection *PathsCollection) ParentWrappers() *Wrappers
- func (pathsCollection *PathsCollection) ParseInjectUsingJson(jsonResult *corejson.Result) (*PathsCollection, error)
- func (pathsCollection *PathsCollection) ParseInjectUsingJsonMust(jsonResult *corejson.Result) *PathsCollection
- func (pathsCollection *PathsCollection) String() string
- func (pathsCollection *PathsCollection) Strings() *[]string
- func (pathsCollection *PathsCollection) UnmarshalJSON(data []byte) error
- type PathsCollectionDataModel
- type SimplePathWrapper
- func (simplePathWrapper *SimplePathWrapper) BaseDir() string
- func (simplePathWrapper *SimplePathWrapper) GetBothExtension() (dotExt, ext string)
- func (simplePathWrapper *SimplePathWrapper) GetFileNameOnly() (fileNameWithoutExt string)
- func (simplePathWrapper *SimplePathWrapper) GetFileNamePlusExt() (filename, ext string)
- func (simplePathWrapper *SimplePathWrapper) IsEquals(anotherWrapper SimplePathWrapper) bool
- func (simplePathWrapper *SimplePathWrapper) IsEqualsPtr(anotherWrapper *SimplePathWrapper) bool
- func (simplePathWrapper *SimplePathWrapper) String() string
- type Wrapper
- func (wrapper *Wrapper) AllSplits() *[]string
- func (wrapper *Wrapper) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector
- func (wrapper *Wrapper) AsJsoner() corejson.Jsoner
- func (wrapper *Wrapper) BaseDir() string
- func (wrapper *Wrapper) FileName() (filename string)
- func (wrapper *Wrapper) FileNameWithoutExt() (filename string)
- func (wrapper *Wrapper) GetBothExtensions() (dotExt, ext string)
- func (wrapper *Wrapper) HasError() bool
- func (wrapper *Wrapper) IsPathExists() bool
- func (wrapper *Wrapper) Json() *corejson.Result
- func (wrapper *Wrapper) JsonModel() *WrapperDataModel
- func (wrapper *Wrapper) JsonModelAny() interface{}
- func (wrapper *Wrapper) JsonParseSelfInject(jsonResult *corejson.Result) error
- func (wrapper *Wrapper) MarshalJSON() ([]byte, error)
- func (wrapper *Wrapper) ModifyTime() time.Time
- func (wrapper *Wrapper) Parent() *Wrapper
- func (wrapper *Wrapper) ParseInjectUsingJson(jsonResult *corejson.Result) (*Wrapper, error)
- func (wrapper *Wrapper) ParseInjectUsingJsonMust(jsonResult *corejson.Result) *Wrapper
- func (wrapper *Wrapper) Size() int64
- func (wrapper *Wrapper) String() string
- func (wrapper *Wrapper) ToString(sep string) string
- func (wrapper *Wrapper) UnmarshalJSON(data []byte) error
- type WrapperDataModel
- type Wrappers
- func EmptyWrappers() *Wrappers
- func GetDirectoriesWrappers(rootPath string, wrapperIn *[]*Wrapper) *Wrappers
- func GetFilesWrappers(rootPath string, wrapperIn *[]*Wrapper) *Wrappers
- func NewWrappersPtr(filePath, separator string, isNormalize bool) *Wrappers
- func NewWrappersPtrUsingCapacity(rootPath string, capacity int) *Wrappers
- func (wrappers *Wrappers) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector
- func (wrappers *Wrappers) AsJsoner() corejson.Jsoner
- func (wrappers *Wrappers) FileNamesCollection() *FileNamesCollection
- func (wrappers *Wrappers) HasAny() bool
- func (wrappers *Wrappers) IsEmpty() bool
- func (wrappers *Wrappers) IsNameContains(name string, isCaseSensitive bool) bool
- func (wrappers *Wrappers) Json() *corejson.Result
- func (wrappers *Wrappers) JsonModel() *Wrappers
- func (wrappers *Wrappers) JsonModelAny() interface{}
- func (wrappers *Wrappers) JsonParseSelfInject(jsonResult *corejson.Result) error
- func (wrappers *Wrappers) Length() int
- func (wrappers *Wrappers) ParseInjectUsingJson(jsonResult *corejson.Result) (*Wrappers, error)
- func (wrappers *Wrappers) ParseInjectUsingJsonMust(jsonResult *corejson.Result) *Wrappers
- func (wrappers *Wrappers) PathsCollection() *PathsCollection
- func (wrappers *Wrappers) RootDirs() *Wrappers
- func (wrappers *Wrappers) RootFiles() *Wrappers
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EmptyWrapperPtr = EmptyWrappers()
)
Functions ¶
This section is empty.
Types ¶
type FileNamesCollection ¶
type FileNamesCollection struct { RootPath string Error *errorwrapper.Wrapper // contains filtered or unexported fields }
func NewFileNames ¶
func NewFileNames(rootPath string, capacity int) *FileNamesCollection
func NewFileNamesUsing ¶
func NewFileNamesUsing( directoryPath, separator string, isNormalize bool, ) *FileNamesCollection
func NewFileNamesUsingWrappers ¶
func NewFileNamesUsingWrappers(wrappers *Wrappers) *FileNamesCollection
func (*FileNamesCollection) Add ¶
func (filesNamesCollection *FileNamesCollection) Add(fileName string) *FileNamesCollection
func (*FileNamesCollection) AddWrapper ¶
func (filesNamesCollection *FileNamesCollection) AddWrapper(wrapper Wrapper) *FileNamesCollection
func (*FileNamesCollection) GetFilePaths ¶
func (filesNamesCollection *FileNamesCollection) GetFilePaths( separator string, ) *[]string
Root level files paths, no nested paths.
func (*FileNamesCollection) HasParentWrappers ¶
func (filesNamesCollection *FileNamesCollection) HasParentWrappers() bool
func (*FileNamesCollection) IsContains ¶
func (filesNamesCollection *FileNamesCollection) IsContains( fileName string, isCaseSensitive bool, ) bool
func (*FileNamesCollection) IsEmpty ¶
func (filesNamesCollection *FileNamesCollection) IsEmpty() bool
func (*FileNamesCollection) IsParentWrappersEmpty ¶
func (filesNamesCollection *FileNamesCollection) IsParentWrappersEmpty() bool
func (*FileNamesCollection) Length ¶
func (filesNamesCollection *FileNamesCollection) Length() int
func (*FileNamesCollection) OnlyNamesCollection ¶
func (filesNamesCollection *FileNamesCollection) OnlyNamesCollection() *[]string
func (*FileNamesCollection) ParentWrappers ¶
func (filesNamesCollection *FileNamesCollection) ParentWrappers() *Wrappers
type PathsCollection ¶
type PathsCollection struct { ErrorWrapper *errorwrapper.Wrapper // contains filtered or unexported fields }
func NewPaths ¶
func NewPaths(rootPath, separator string, capacity int) *PathsCollection
func NewPathsUsing ¶
func NewPathsUsing( directoryPath, separator string, isNormalize bool, ) *PathsCollection
func NewPathsUsingPaths ¶
func NewPathsUsingPaths( rootPath, separator string, recursivePaths *[]string, ) *PathsCollection
func NewPathsUsingWrappers ¶
func NewPathsUsingWrappers( rootPath, separator string, wrappers *Wrappers, ) *PathsCollection
func (*PathsCollection) Add ¶
func (pathsCollection *PathsCollection) Add( wrapper *SimplePathWrapper, ) *PathsCollection
func (*PathsCollection) AddPtr ¶
func (pathsCollection *PathsCollection) AddPtr( wrapper *SimplePathWrapper, ) *PathsCollection
func (*PathsCollection) AddWrapper ¶
func (pathsCollection *PathsCollection) AddWrapper( pathWrapper *SimplePathWrapper, ) *PathsCollection
func (*PathsCollection) AsJsonParseSelfInjector ¶ added in v0.0.7
func (pathsCollection *PathsCollection) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector
func (*PathsCollection) AsJsoner ¶ added in v0.0.7
func (pathsCollection *PathsCollection) AsJsoner() corejson.Jsoner
func (*PathsCollection) Directories ¶
func (pathsCollection *PathsCollection) Directories() *[]string
func (*PathsCollection) Files ¶
func (pathsCollection *PathsCollection) Files() *[]string
func (*PathsCollection) HasParentWrappers ¶
func (pathsCollection *PathsCollection) HasParentWrappers() bool
func (*PathsCollection) IsEmpty ¶
func (pathsCollection *PathsCollection) IsEmpty() bool
func (*PathsCollection) IsParentWrappersEmpty ¶
func (pathsCollection *PathsCollection) IsParentWrappersEmpty() bool
func (*PathsCollection) Json ¶ added in v0.0.7
func (pathsCollection *PathsCollection) Json() *corejson.Result
func (*PathsCollection) JsonModel ¶ added in v0.0.7
func (pathsCollection *PathsCollection) JsonModel() *PathsCollectionDataModel
func (*PathsCollection) JsonModelAny ¶ added in v0.0.7
func (pathsCollection *PathsCollection) JsonModelAny() interface{}
func (*PathsCollection) JsonParseSelfInject ¶ added in v0.0.7
func (pathsCollection *PathsCollection) JsonParseSelfInject( jsonResult *corejson.Result, ) error
func (*PathsCollection) Length ¶
func (pathsCollection *PathsCollection) Length() int
func (*PathsCollection) MarshalJSON ¶ added in v0.0.7
func (pathsCollection *PathsCollection) MarshalJSON() ([]byte, error)
func (*PathsCollection) ParentWrappers ¶
func (pathsCollection *PathsCollection) ParentWrappers() *Wrappers
func (*PathsCollection) ParseInjectUsingJson ¶ added in v0.0.7
func (pathsCollection *PathsCollection) ParseInjectUsingJson( jsonResult *corejson.Result, ) (*PathsCollection, error)
func (*PathsCollection) ParseInjectUsingJsonMust ¶ added in v0.0.7
func (pathsCollection *PathsCollection) ParseInjectUsingJsonMust( jsonResult *corejson.Result, ) *PathsCollection
Panic if error
func (*PathsCollection) String ¶ added in v0.0.7
func (pathsCollection *PathsCollection) String() string
func (*PathsCollection) Strings ¶ added in v0.0.7
func (pathsCollection *PathsCollection) Strings() *[]string
func (*PathsCollection) UnmarshalJSON ¶ added in v0.0.7
func (pathsCollection *PathsCollection) UnmarshalJSON(data []byte) error
type PathsCollectionDataModel ¶ added in v0.0.7
type PathsCollectionDataModel struct { RootPath string PathWrappers *[]*SimplePathWrapper `json:"SimplePathWrappers"` Separator string ErrorWrapper *errorwrapper.Wrapper ParentWrappers *Wrappers }
type SimplePathWrapper ¶ added in v0.0.6
func (*SimplePathWrapper) BaseDir ¶ added in v0.0.7
func (simplePathWrapper *SimplePathWrapper) BaseDir() string
func (*SimplePathWrapper) GetBothExtension ¶ added in v0.0.7
func (simplePathWrapper *SimplePathWrapper) GetBothExtension() (dotExt, ext string)
func (*SimplePathWrapper) GetFileNameOnly ¶ added in v0.0.7
func (simplePathWrapper *SimplePathWrapper) GetFileNameOnly() (fileNameWithoutExt string)
func (*SimplePathWrapper) GetFileNamePlusExt ¶ added in v0.0.7
func (simplePathWrapper *SimplePathWrapper) GetFileNamePlusExt() (filename, ext string)
func (*SimplePathWrapper) IsEquals ¶ added in v0.0.6
func (simplePathWrapper *SimplePathWrapper) IsEquals(anotherWrapper SimplePathWrapper) bool
func (*SimplePathWrapper) IsEqualsPtr ¶ added in v0.0.6
func (simplePathWrapper *SimplePathWrapper) IsEqualsPtr(anotherWrapper *SimplePathWrapper) bool
func (*SimplePathWrapper) String ¶ added in v0.0.6
func (simplePathWrapper *SimplePathWrapper) String() string
type Wrapper ¶
type Wrapper struct { FileInfo *os.FileInfo ErrorWrapper *errorwrapper.Wrapper RawPath string IsDirectory bool IsFile bool IsEmptyPath bool Separator string // contains filtered or unexported fields }
func NewUsingInfo ¶
func (*Wrapper) AsJsonParseSelfInjector ¶ added in v0.0.7
func (wrapper *Wrapper) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector
func (*Wrapper) FileNameWithoutExt ¶ added in v0.0.7
func (*Wrapper) GetBothExtensions ¶ added in v0.0.7
func (*Wrapper) IsPathExists ¶
func (*Wrapper) JsonModel ¶ added in v0.0.7
func (wrapper *Wrapper) JsonModel() *WrapperDataModel
func (*Wrapper) JsonModelAny ¶ added in v0.0.7
func (wrapper *Wrapper) JsonModelAny() interface{}
func (*Wrapper) JsonParseSelfInject ¶ added in v0.0.7
func (*Wrapper) MarshalJSON ¶ added in v0.0.7
func (*Wrapper) ModifyTime ¶ added in v0.0.7
func (*Wrapper) ParseInjectUsingJson ¶ added in v0.0.7
func (*Wrapper) ParseInjectUsingJsonMust ¶ added in v0.0.7
Panic if error
func (*Wrapper) UnmarshalJSON ¶ added in v0.0.7
type WrapperDataModel ¶ added in v0.0.7
type Wrappers ¶
type Wrappers struct { RootPath string Separator string Items *[]*Wrapper ErrorWrapper *errorwrapper.Wrapper // contains filtered or unexported fields }
func EmptyWrappers ¶
func EmptyWrappers() *Wrappers
func GetDirectoriesWrappers ¶
func GetFilesWrappers ¶
func NewWrappersPtr ¶
func (*Wrappers) AsJsonParseSelfInjector ¶ added in v0.0.7
func (wrappers *Wrappers) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector
func (*Wrappers) FileNamesCollection ¶
func (wrappers *Wrappers) FileNamesCollection() *FileNamesCollection
func (*Wrappers) IsNameContains ¶
func (*Wrappers) JsonModelAny ¶ added in v0.0.7
func (wrappers *Wrappers) JsonModelAny() interface{}
func (*Wrappers) JsonParseSelfInject ¶ added in v0.0.7
func (*Wrappers) ParseInjectUsingJson ¶ added in v0.0.7
func (*Wrappers) ParseInjectUsingJsonMust ¶ added in v0.0.7
ParseInjectUsingJsonMust Panic if error
func (*Wrappers) PathsCollection ¶
func (wrappers *Wrappers) PathsCollection() *PathsCollection
Click to show internal directories.
Click to hide internal directories.