Documentation ¶
Index ¶
- Variables
- type FileNamesCollection
- func (it *FileNamesCollection) Add(fileName string) *FileNamesCollection
- func (it *FileNamesCollection) AddWrapper(wrapper Wrapper) *FileNamesCollection
- func (it *FileNamesCollection) GetFilePaths(separator string) []string
- func (it *FileNamesCollection) HasIssuesOrEmpty() bool
- func (it *FileNamesCollection) HasParentWrappers() bool
- func (it *FileNamesCollection) IsContains(fileName string, isCaseSensitive bool) bool
- func (it *FileNamesCollection) IsEmpty() bool
- func (it *FileNamesCollection) IsParentWrappersEmpty() bool
- func (it *FileNamesCollection) Length() int
- func (it *FileNamesCollection) OnlyNamesCollection() []string
- func (it *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 (it *PathsCollection) Add(wrapper *SimplePathWrapper) *PathsCollection
- func (it *PathsCollection) AddPtr(wrapper *SimplePathWrapper) *PathsCollection
- func (it *PathsCollection) AddWrapper(pathWrapper *SimplePathWrapper) *PathsCollection
- func (it *PathsCollection) AsJsonContractsBinder() corejson.JsonContractsBinder
- func (it *PathsCollection) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector
- func (it *PathsCollection) AsJsoner() corejson.Jsoner
- func (it *PathsCollection) Directories() *[]string
- func (it *PathsCollection) Files() *[]string
- func (it *PathsCollection) HasParentWrappers() bool
- func (it *PathsCollection) IsEmpty() bool
- func (it *PathsCollection) IsParentWrappersEmpty() bool
- func (it PathsCollection) Json() corejson.Result
- func (it *PathsCollection) JsonModel() *PathsCollectionDataModel
- func (it *PathsCollection) JsonModelAny() interface{}
- func (it *PathsCollection) JsonParseSelfInject(jsonResult *corejson.Result) error
- func (it PathsCollection) JsonPtr() *corejson.Result
- func (it *PathsCollection) Length() int
- func (it *PathsCollection) MarshalJSON() ([]byte, error)
- func (it *PathsCollection) ParentWrappers() *Wrappers
- func (it *PathsCollection) ParseInjectUsingJson(jsonResult *corejson.Result) (*PathsCollection, error)
- func (it *PathsCollection) ParseInjectUsingJsonMust(jsonResult *corejson.Result) *PathsCollection
- func (it PathsCollection) String() string
- func (it *PathsCollection) Strings() *[]string
- func (it *PathsCollection) UnmarshalJSON(data []byte) error
- type PathsCollectionDataModel
- type SimplePathWrapper
- func (it *SimplePathWrapper) BaseDir() string
- func (it *SimplePathWrapper) GetBothExtension() (dotExt, ext string)
- func (it *SimplePathWrapper) GetFileNameOnly() (fileNameWithoutExt string)
- func (it *SimplePathWrapper) GetFileNamePlusExt() (filename, ext string)
- func (it *SimplePathWrapper) IsEquals(anotherWrapper SimplePathWrapper) bool
- func (it *SimplePathWrapper) IsEqualsPtr(anotherWrapper *SimplePathWrapper) bool
- func (it SimplePathWrapper) String() string
- type Wrapper
- func (it *Wrapper) AllSplits() *[]string
- func (it *Wrapper) AsJsonContractsBinder() corejson.JsonContractsBinder
- func (it *Wrapper) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector
- func (it *Wrapper) AsJsoner() corejson.Jsoner
- func (it *Wrapper) BaseDir() string
- func (it *Wrapper) FileName() (filename string)
- func (it *Wrapper) FileNameWithoutExt() (filename string)
- func (it *Wrapper) GetBothExtensions() (dotExt, ext string)
- func (it *Wrapper) HasError() bool
- func (it *Wrapper) IsPathExists() bool
- func (it Wrapper) Json() corejson.Result
- func (it *Wrapper) JsonModel() *WrapperDataModel
- func (it *Wrapper) JsonModelAny() interface{}
- func (it *Wrapper) JsonParseSelfInject(jsonResult *corejson.Result) error
- func (it Wrapper) JsonPtr() *corejson.Result
- func (it *Wrapper) MarshalJSON() ([]byte, error)
- func (it *Wrapper) ModifyTime() time.Time
- func (it *Wrapper) Parent() *Wrapper
- func (it *Wrapper) ParseInjectUsingJson(jsonResult *corejson.Result) (*Wrapper, error)
- func (it *Wrapper) ParseInjectUsingJsonMust(jsonResult *corejson.Result) *Wrapper
- func (it *Wrapper) Size() int64
- func (it Wrapper) String() string
- func (it *Wrapper) ToString(sep string) string
- func (it *Wrapper) UnmarshalJSON(data []byte) error
- type WrapperDataModel
- type Wrappers
- func EmptyWrappers() *Wrappers
- func GetDirectoriesWrappers(rootPath string, wrapperIn []*Wrapper) *Wrappers
- func GetFilesWrappers(rootPath string, wrappersIn []*Wrapper) *Wrappers
- func NewWrappersPtr(filePath, separator string, isNormalize bool) *Wrappers
- func NewWrappersPtrUsingCapacity(rootPath string, capacity int) *Wrappers
- func (it *Wrappers) AsJsonContractsBinder() corejson.JsonContractsBinder
- func (it *Wrappers) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector
- func (it *Wrappers) AsJsoner() corejson.Jsoner
- func (it *Wrappers) FileNamesCollection() *FileNamesCollection
- func (it *Wrappers) HasAny() bool
- func (it *Wrappers) IsEmpty() bool
- func (it *Wrappers) IsNameContains(name string, isCaseSensitive bool) bool
- func (it Wrappers) Json() corejson.Result
- func (it *Wrappers) JsonModel() *Wrappers
- func (it *Wrappers) JsonModelAny() interface{}
- func (it *Wrappers) JsonParseSelfInject(jsonResult *corejson.Result) error
- func (it Wrappers) JsonPtr() *corejson.Result
- func (it *Wrappers) Length() int
- func (it *Wrappers) ParseInjectUsingJson(jsonResult *corejson.Result) (*Wrappers, error)
- func (it *Wrappers) ParseInjectUsingJsonMust(jsonResult *corejson.Result) *Wrappers
- func (it *Wrappers) PathsCollection() *PathsCollection
- func (it *Wrappers) RootDirs() *Wrappers
- func (it *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 (it *FileNamesCollection) Add(fileName string) *FileNamesCollection
func (*FileNamesCollection) AddWrapper ¶
func (it *FileNamesCollection) AddWrapper(wrapper Wrapper) *FileNamesCollection
func (*FileNamesCollection) GetFilePaths ¶
func (it *FileNamesCollection) GetFilePaths( separator string, ) []string
GetFilePaths
Root level files paths, no nested paths.
func (*FileNamesCollection) HasIssuesOrEmpty ¶ added in v0.5.2
func (it *FileNamesCollection) HasIssuesOrEmpty() bool
func (*FileNamesCollection) HasParentWrappers ¶
func (it *FileNamesCollection) HasParentWrappers() bool
func (*FileNamesCollection) IsContains ¶
func (it *FileNamesCollection) IsContains( fileName string, isCaseSensitive bool, ) bool
func (*FileNamesCollection) IsEmpty ¶
func (it *FileNamesCollection) IsEmpty() bool
func (*FileNamesCollection) IsParentWrappersEmpty ¶
func (it *FileNamesCollection) IsParentWrappersEmpty() bool
func (*FileNamesCollection) Length ¶
func (it *FileNamesCollection) Length() int
func (*FileNamesCollection) OnlyNamesCollection ¶
func (it *FileNamesCollection) OnlyNamesCollection() []string
func (*FileNamesCollection) ParentWrappers ¶
func (it *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 (it *PathsCollection) Add( wrapper *SimplePathWrapper, ) *PathsCollection
func (*PathsCollection) AddPtr ¶
func (it *PathsCollection) AddPtr( wrapper *SimplePathWrapper, ) *PathsCollection
func (*PathsCollection) AddWrapper ¶
func (it *PathsCollection) AddWrapper( pathWrapper *SimplePathWrapper, ) *PathsCollection
func (*PathsCollection) AsJsonContractsBinder ¶ added in v0.5.3
func (it *PathsCollection) AsJsonContractsBinder() corejson.JsonContractsBinder
func (*PathsCollection) AsJsonParseSelfInjector ¶ added in v0.0.7
func (it *PathsCollection) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector
func (*PathsCollection) AsJsoner ¶ added in v0.0.7
func (it *PathsCollection) AsJsoner() corejson.Jsoner
func (*PathsCollection) Directories ¶
func (it *PathsCollection) Directories() *[]string
func (*PathsCollection) Files ¶
func (it *PathsCollection) Files() *[]string
func (*PathsCollection) HasParentWrappers ¶
func (it *PathsCollection) HasParentWrappers() bool
func (*PathsCollection) IsEmpty ¶
func (it *PathsCollection) IsEmpty() bool
func (*PathsCollection) IsParentWrappersEmpty ¶
func (it *PathsCollection) IsParentWrappersEmpty() bool
func (PathsCollection) Json ¶ added in v0.0.7
func (it PathsCollection) Json() corejson.Result
func (*PathsCollection) JsonModel ¶ added in v0.0.7
func (it *PathsCollection) JsonModel() *PathsCollectionDataModel
func (*PathsCollection) JsonModelAny ¶ added in v0.0.7
func (it *PathsCollection) JsonModelAny() interface{}
func (*PathsCollection) JsonParseSelfInject ¶ added in v0.0.7
func (it *PathsCollection) JsonParseSelfInject( jsonResult *corejson.Result, ) error
func (PathsCollection) JsonPtr ¶ added in v0.5.2
func (it PathsCollection) JsonPtr() *corejson.Result
func (*PathsCollection) Length ¶
func (it *PathsCollection) Length() int
func (*PathsCollection) MarshalJSON ¶ added in v0.0.7
func (it *PathsCollection) MarshalJSON() ([]byte, error)
func (*PathsCollection) ParentWrappers ¶
func (it *PathsCollection) ParentWrappers() *Wrappers
func (*PathsCollection) ParseInjectUsingJson ¶ added in v0.0.7
func (it *PathsCollection) ParseInjectUsingJson( jsonResult *corejson.Result, ) (*PathsCollection, error)
func (*PathsCollection) ParseInjectUsingJsonMust ¶ added in v0.0.7
func (it *PathsCollection) ParseInjectUsingJsonMust( jsonResult *corejson.Result, ) *PathsCollection
Panic if error
func (PathsCollection) String ¶ added in v0.0.7
func (it PathsCollection) String() string
func (*PathsCollection) Strings ¶ added in v0.0.7
func (it *PathsCollection) Strings() *[]string
func (*PathsCollection) UnmarshalJSON ¶ added in v0.0.7
func (it *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 (it *SimplePathWrapper) BaseDir() string
func (*SimplePathWrapper) GetBothExtension ¶ added in v0.0.7
func (it *SimplePathWrapper) GetBothExtension() (dotExt, ext string)
func (*SimplePathWrapper) GetFileNameOnly ¶ added in v0.0.7
func (it *SimplePathWrapper) GetFileNameOnly() (fileNameWithoutExt string)
func (*SimplePathWrapper) GetFileNamePlusExt ¶ added in v0.0.7
func (it *SimplePathWrapper) GetFileNamePlusExt() (filename, ext string)
func (*SimplePathWrapper) IsEquals ¶ added in v0.0.6
func (it *SimplePathWrapper) IsEquals(anotherWrapper SimplePathWrapper) bool
func (*SimplePathWrapper) IsEqualsPtr ¶ added in v0.0.6
func (it *SimplePathWrapper) IsEqualsPtr(anotherWrapper *SimplePathWrapper) bool
func (SimplePathWrapper) String ¶ added in v0.0.6
func (it 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) AsJsonContractsBinder ¶ added in v0.5.3
func (it *Wrapper) AsJsonContractsBinder() corejson.JsonContractsBinder
func (*Wrapper) AsJsonParseSelfInjector ¶ added in v0.0.7
func (it *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 (it *Wrapper) JsonModel() *WrapperDataModel
func (*Wrapper) JsonModelAny ¶ added in v0.0.7
func (it *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) AsJsonContractsBinder ¶ added in v0.5.3
func (it *Wrappers) AsJsonContractsBinder() corejson.JsonContractsBinder
func (*Wrappers) AsJsonParseSelfInjector ¶ added in v0.0.7
func (it *Wrappers) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector
func (*Wrappers) FileNamesCollection ¶
func (it *Wrappers) FileNamesCollection() *FileNamesCollection
func (*Wrappers) IsNameContains ¶
func (*Wrappers) JsonModelAny ¶ added in v0.0.7
func (it *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 (it *Wrappers) PathsCollection() *PathsCollection
Click to show internal directories.
Click to hide internal directories.