Documentation ¶
Index ¶
- func AddPathExtensionOnRequired(location, dotExt string) string
- func AllDirSplits(currentPath string) (baseDirNames *[]string)
- func AllDirSplitsWithSep(currentPath, separator string) (baseDirNames *[]string)
- func ArgumentsJoin(args ...string) string
- func ArgumentsJoinSlice(args []string) string
- func FileInfoCompare(left, right os.FileInfo) corecomparator.Compare
- func FileNameJoiner(fileName, extensionWithOrWithoutDot string) string
- func FileNameWithDotExtension(fileNameWithoutExt, dotExt string) string
- func FileNameWithExtension(fileNameWithoutExt, nonDotExt string) string
- func GetAbsoluteFromExecutableDirectoryPath(relativePath string, isLongPathFix, isNormalize bool) string
- func GetAbsolutePath(basePath, relativePath string, isLongPathFix, isNormalize bool) string
- func GetAbsolutePaths(isLongPathFix, isNormalize bool, basePath string, relativePaths []string) []string
- func GetAsyncProcessed(processingPaths []string, processor pathfuncs.Processor) []string
- func GetBaseDir(currentPath string) (baseDir string)
- func GetBaseDirNames(currentPath string) (baseDirNames *[]string)
- func GetBaseDirOrEmpty(currentPath string) (baseDir string)
- func GetCombinePathFromGoPath(pathConfig *pathhelpercore.PathConfig, givenPaths ...string) string
- func GetCombinePathsWith(paths ...string) string
- func GetCombinePathsWithPtr(paths *[]string) string
- func GetCombinedOfNonEmptyPaths(separator string, paths []string) string
- func GetCombinedPath(separator string, isIgnoreEmptyPath bool, isLongPathFix bool, isNormalize bool, ...) string
- func GetCombinedPathUsingConfig(pathConfig *pathhelpercore.PathConfig, paths ...string) string
- func GetCompiledPath(pathTemplate string, compilingMap *map[string]string) string
- func GetDotExtension(currentPath string) string
- func GetEachPathConvertedToFileInfoWrapper(separator string, fullPaths *[]string) *[]*fileinfo.Wrapper
- func GetExecutableCombinePath(paths ...string) string
- func GetExecutableDirectory() string
- func GetExecutablePath() string
- func GetExtensions(currentPath string) (dotExt, ext string)
- func GetExtensionsWithoutDot(currentPath string) string
- func GetFileInfoWrapper(path string) *fileinfo.Wrapper
- func GetFileInfoWrappersArrayOf(separator string, fullPaths *[]string, isNormalize bool) *[]*fileinfo.Wrappers
- func GetFileInfoWrappersFrom(path string, isNormalize bool) *fileinfo.Wrappers
- func GetFileInfoWrappersFromUsingSeparator(path, separator string, isNormalize bool) *fileinfo.Wrappers
- func GetFileNameWithExt(currentPath string) (fileName string)
- func GetFileNameWithoutExt(currentPath string) (filename string)
- func GetFileNames(path string, isNormalize bool) *fileinfo.FileNamesCollection
- func GetFilenamePlusBothExtensions(currentPath string) (fileName, dotExt, ext string)
- func GetOsFileInfos(allPaths *[]string) (infos *[]os.FileInfo, errsCollection *errwrappers.Collection)
- func GetOsFileInfosCollection(allPaths *[]string) (infos *osfileinfos.Collection, errsCollection *errwrappers.Collection)
- func GetParentDir(location string) string
- func GetPathAsUri(path string, isNormalizePath bool) string
- func GetPathAsUris(isNormalizePath bool, paths []string) []string
- func GetPathFromUri(path string, isNormalizePath bool) string
- func GetRelativePath(fullPath, basePath string) string
- func GetRelativePaths(rootPath string, fullPaths ...string) *[]string
- func GetRelativePathsOfPtr(rootPath string, fullPaths *[]string) *[]string
- func GetSlug(isDotValid bool, fixingSlugRune, spaceFixingSlug rune, path string) string
- func GetSlugDefaultHyphen(path string) string
- func GetSlugDefaultHyphenUnderscore(path string) string
- func GetSlugsOf(isDotValid bool, slugFixer, spaceSlugFixer rune, paths []string) []string
- func GetSlugsOfDefaultHyphenAll(paths ...string) []string
- func GetWithoutSlash(currentPath string) (baseDir, fileName string)
- func IndexOfDotFromLastFileName(currentPath string) (fileName string, index int)
- func IsDir(location string) bool
- func IsExistButDirectory(location string) bool
- func IsGoModuleOn() bool
- func IsPathExists(location string) bool
- func IsSymbolicLink(path string) bool
- func LastModifiedDateCompare(left, right *time.Time) corecomparator.Compare
- func ParentDir(currentPath string) (baseDir string)
- func PathCombineWithBase(isNormalize, isExpandEnv bool, baseDir, relativePath string) string
- func RemoveDoubleUriSeparator(path, separator string) string
- func RemoveFromPath(pathTemplate string, removingList *[]string, isNormalizePath bool) string
- func RuneRepeatFixToSingle(fixingSlugRune rune, inputString string) string
- func SizeCompare(left, right *int64) corecomparator.Compare
- func Split(currentPath string) (baseDir, fileName string)
- func SplitWithoutSlash(currentPath string) (baseDir, fileName string)
- type LocationInfo
- func (it *LocationInfo) HasBaseDir() bool
- func (it *LocationInfo) HasDotExtension() bool
- func (it *LocationInfo) HasExtension() bool
- func (it *LocationInfo) HasFileName() bool
- func (it *LocationInfo) HasFileNameWithExtension() bool
- func (it *LocationInfo) HasLocation() bool
- func (it *LocationInfo) IsDotExtension(dotExt string, isIgnoreCase bool) bool
- func (it *LocationInfo) IsExtension(ext string, isIgnoreCase bool) bool
- func (it *LocationInfo) IsFileName(fileName string, isIgnoreCase bool) bool
- func (it *LocationInfo) IsFileNameExt(fileNameExt string, isIgnoreCase bool) bool
- func (it *LocationInfo) IsInvalidBaseDir() bool
- func (it *LocationInfo) IsInvalidDotExtension() bool
- func (it *LocationInfo) IsInvalidExtension() bool
- func (it *LocationInfo) IsInvalidFileName() bool
- func (it *LocationInfo) IsInvalidFileNameWithExtension() bool
- func (it *LocationInfo) IsInvalidLocation() bool
- func (it *LocationInfo) PathCombineWithBase(isNormalize, isExpandEnv bool, relativePath string) string
- func (it *LocationInfo) PathCombineWithBaseAsLocationInfo(isNormalize, isExpandEnv bool, relativePath string) *LocationInfo
- func (it *LocationInfo) PathSimpleStat() *pathchmod.SimpleStat
- func (it LocationInfo) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPathExtensionOnRequired ¶ added in v0.2.4
func AllDirSplits ¶ added in v0.0.6
func AllDirSplitsWithSep ¶ added in v0.0.6
func ArgumentsJoin ¶ added in v0.1.0
func ArgumentsJoinSlice ¶ added in v0.1.0
func FileInfoCompare ¶ added in v0.5.1
func FileInfoCompare( left, right os.FileInfo, ) corecomparator.Compare
func FileNameJoiner ¶ added in v0.5.1
func FileNameWithDotExtension ¶ added in v0.5.1
func FileNameWithExtension ¶ added in v0.5.1
func GetAbsolutePath ¶
func GetAbsolutePaths ¶
func GetAsyncProcessed ¶
GetAsyncProcessed Don't modify existing paths and creates new one.
func GetBaseDir ¶
GetBaseDir No slash at the end reference example : https://play.golang.org/p/oT6eWNZAeEi
func GetBaseDirNames ¶ added in v0.0.6
func GetBaseDirOrEmpty ¶ added in v0.2.4
func GetCombinePathFromGoPath ¶
func GetCombinePathFromGoPath( pathConfig *pathhelpercore.PathConfig, givenPaths ...string, ) string
By defaultPathConfig: Separator = os.PathSeparator IsNormalize = true IsIgnoreEmptyPath = false
func GetCombinePathsWith ¶
Returns path as string after combining all provided paths By default isIgnorePath: true, isNormalize: true, and Location separator depends on the OS
func GetCombinePathsWithPtr ¶
Returns path as string after combining all provided paths By default isIgnorePath: true, isNormalize: true, and Location separator depends on the OS
func GetCombinedPath ¶
func GetCombinedPath( separator string, isIgnoreEmptyPath bool, isLongPathFix bool, isNormalize bool, paths ...string, ) string
GetCombinedPath
@isIgnoreEmptyPath if true then ignore empty string (nil, "", or any empty spaces " ")
func GetCombinedPathUsingConfig ¶
func GetCombinedPathUsingConfig(pathConfig *pathhelpercore.PathConfig, paths ...string) string
if pathConfig is nil then pathConfig gets created pathhelpercore.NewDefaultPathConfig() By NewDefaultPathConfig: Separator = os.PathSeparator IsNormalize = true IsIgnoreEmptyPath = false
func GetCompiledPath ¶
func GetDotExtension ¶ added in v0.0.4
func GetEachPathConvertedToFileInfoWrapper ¶
func GetEachPathConvertedToFileInfoWrapper(separator string, fullPaths *[]string) *[]*fileinfo.Wrapper
For each path converted to file info wrapper and finally returns as an array.
func GetExecutableCombinePath ¶
Get the final path exePath + ....
func GetExecutableDirectory ¶
func GetExecutableDirectory() string
Represents the directory where the application is running from. Returns without slash
func GetExecutablePath ¶
func GetExecutablePath() string
Represents the exact path to the executable file Exact path to the executable not the path but the file.
func GetExtensions ¶ added in v0.0.4
func GetExtensionsWithoutDot ¶ added in v0.0.4
func GetFileInfoWrapper ¶
func GetFileInfoWrappersArrayOf ¶
func GetFileInfoWrappersArrayOf( separator string, fullPaths *[]string, isNormalize bool, ) *[]*fileinfo.Wrappers
Each path can give number wrappers from GetFileInfoWrappersFrom This method call GetFileInfoWrappersFrom for each path given and returns as an array of it.
func GetFileInfoWrappersFrom ¶
func GetFileInfoWrappersFromUsingSeparator ¶ added in v0.0.6
func GetFileNameWithExt ¶
GetFileNameWithExt reference example : https://play.golang.org/p/oT6eWNZAeEi
func GetFileNameWithoutExt ¶
GetFileNameWithoutExt invalid ext should return empty string. reference example : https://play.golang.org/p/oT6eWNZAeEi
func GetFileNames ¶
func GetFileNames(path string, isNormalize bool) *fileinfo.FileNamesCollection
GetFileNames
returns file names on the path (non-lazy execution).
func GetFilenamePlusBothExtensions ¶ added in v0.0.4
func GetOsFileInfos ¶ added in v0.0.7
func GetOsFileInfos( allPaths *[]string, ) ( infos *[]os.FileInfo, errsCollection *errwrappers.Collection, )
func GetOsFileInfosCollection ¶ added in v0.0.7
func GetOsFileInfosCollection( allPaths *[]string, ) ( infos *osfileinfos.Collection, errsCollection *errwrappers.Collection, )
func GetParentDir ¶ added in v0.1.3
func GetPathAsUri ¶
func GetPathAsUris ¶ added in v0.4.8
func GetPathFromUri ¶
GetPathFromUri function takes a path (string) and a bool input and returns a string after removing Uri prefixes (file:///, file://). If bool is set to true any double separator is also removed from returned string
func GetRelativePath ¶
func GetRelativePaths ¶
func GetRelativePathsOfPtr ¶
func GetSlugDefaultHyphen ¶ added in v0.5.1
func GetSlugDefaultHyphenUnderscore ¶ added in v0.5.1
func GetSlugsOf ¶
func GetSlugsOfDefaultHyphenAll ¶ added in v0.5.1
func GetWithoutSlash ¶
func IndexOfDotFromLastFileName ¶ added in v0.0.4
returns -1 if last file name doesn't have any extension reference example : https://play.golang.org/p/oT6eWNZAeEi
func IsExistButDirectory ¶ added in v0.1.7
func IsPathExists ¶ added in v0.1.3
func IsSymbolicLink ¶
func LastModifiedDateCompare ¶ added in v0.5.1
func LastModifiedDateCompare( left, right *time.Time, ) corecomparator.Compare
func ParentDir ¶ added in v0.3.5
ParentDir alias for GetBaseDir reference example : https://play.golang.org/p/oT6eWNZAeEi
func PathCombineWithBase ¶ added in v0.2.4
func RemoveFromPath ¶
Given removingList array items will be replaced with "" empty string. If pathTemplate is given as empty string or nil or whitespace then returns as is.
func RuneRepeatFixToSingle ¶ added in v0.5.1
func SizeCompare ¶ added in v0.5.1
func SizeCompare( left, right *int64, ) corecomparator.Compare
func SplitWithoutSlash ¶
reference example : https://play.golang.org/p/oT6eWNZAeEi
Types ¶
type LocationInfo ¶ added in v0.2.4
type LocationInfo struct { RawLocation, FileNameWithExtension, BaseDir, FileName, DotExtension, Extension string }
func GetLocationInfo ¶ added in v0.2.4
func GetLocationInfo(location string) *LocationInfo
func (*LocationInfo) HasBaseDir ¶ added in v0.2.4
func (it *LocationInfo) HasBaseDir() bool
func (*LocationInfo) HasDotExtension ¶ added in v0.2.4
func (it *LocationInfo) HasDotExtension() bool
func (*LocationInfo) HasExtension ¶ added in v0.2.4
func (it *LocationInfo) HasExtension() bool
func (*LocationInfo) HasFileName ¶ added in v0.2.4
func (it *LocationInfo) HasFileName() bool
func (*LocationInfo) HasFileNameWithExtension ¶ added in v0.2.4
func (it *LocationInfo) HasFileNameWithExtension() bool
func (*LocationInfo) HasLocation ¶ added in v0.2.4
func (it *LocationInfo) HasLocation() bool
func (*LocationInfo) IsDotExtension ¶ added in v0.2.4
func (it *LocationInfo) IsDotExtension(dotExt string, isIgnoreCase bool) bool
func (*LocationInfo) IsExtension ¶ added in v0.2.4
func (it *LocationInfo) IsExtension(ext string, isIgnoreCase bool) bool
func (*LocationInfo) IsFileName ¶ added in v0.2.4
func (it *LocationInfo) IsFileName(fileName string, isIgnoreCase bool) bool
func (*LocationInfo) IsFileNameExt ¶ added in v0.2.4
func (it *LocationInfo) IsFileNameExt(fileNameExt string, isIgnoreCase bool) bool
func (*LocationInfo) IsInvalidBaseDir ¶ added in v0.2.4
func (it *LocationInfo) IsInvalidBaseDir() bool
func (*LocationInfo) IsInvalidDotExtension ¶ added in v0.2.4
func (it *LocationInfo) IsInvalidDotExtension() bool
func (*LocationInfo) IsInvalidExtension ¶ added in v0.2.4
func (it *LocationInfo) IsInvalidExtension() bool
func (*LocationInfo) IsInvalidFileName ¶ added in v0.2.4
func (it *LocationInfo) IsInvalidFileName() bool
func (*LocationInfo) IsInvalidFileNameWithExtension ¶ added in v0.2.4
func (it *LocationInfo) IsInvalidFileNameWithExtension() bool
func (*LocationInfo) IsInvalidLocation ¶ added in v0.2.4
func (it *LocationInfo) IsInvalidLocation() bool
func (*LocationInfo) PathCombineWithBase ¶ added in v0.2.4
func (it *LocationInfo) PathCombineWithBase( isNormalize, isExpandEnv bool, relativePath string, ) string
func (*LocationInfo) PathCombineWithBaseAsLocationInfo ¶ added in v0.2.4
func (it *LocationInfo) PathCombineWithBaseAsLocationInfo( isNormalize, isExpandEnv bool, relativePath string, ) *LocationInfo
func (*LocationInfo) PathSimpleStat ¶ added in v0.2.4
func (it *LocationInfo) PathSimpleStat() *pathchmod.SimpleStat
func (LocationInfo) String ¶ added in v0.3.5
func (it LocationInfo) String() string
Source Files ¶
- AddPathExtensionOnRequired.go
- AllDirSplits.go
- AllDirSplitsWithSep.go
- ArgumentsJoin.go
- ArgumentsJoinSlice.go
- FileInfoCompare.go
- FileNameJoiner.go
- FileNameWithDotExtension.go
- FileNameWithExtension.go
- GetAbsoluteFromExecutableDirectoryPath.go
- GetAbsolutePath.go
- GetAbsolutePaths.go
- GetAsyncProcessed.go
- GetBaseDir.go
- GetBaseDirNames.go
- GetBaseDirOrEmpty.go
- GetCombinePathFromGoPath.go
- GetCombinePathsWithPtr.go
- GetCombinedOfNonEmptyPaths.go
- GetCombinedPath.go
- GetCombinedPathUsingConfig.go
- GetCombinedPathsWith.go
- GetCompiledPath.go
- GetDotExtension.go
- GetEachPathConvertedToFileInfoWrapper.go
- GetExecutableCombinePath.go
- GetExecutableDirectory.go
- GetExecutablePath.go
- GetExtensions.go
- GetExtensionsWithoutDot.go
- GetFileInfoWrapper.go
- GetFileInfoWrappersArrayOf.go
- GetFileInfoWrappersFromUsingSeparator.go
- GetFileNameWithExt.go
- GetFileNameWithoutExt.go
- GetFilenamePlusBothExtensions.go
- GetFilesPaths.go
- GetLocationInfo.go
- GetOsFileInfos.go
- GetOsFileInfosCollection.go
- GetParentDir.go
- GetPathAsUri.go
- GetPathAsUris.go
- GetPathFromUri.go
- GetRelativePath.go
- GetRelativePathsOf.go
- GetRelativePathsOfPtr.go
- GetSlug.go
- GetSlugDefaultHyphen.go
- GetSlugDefaultHyphenUnderscore.go
- GetSlugsOf.go
- GetSlugsOfDefaultHyphenAll.go
- GetWithoutSlash.go
- IndexOfLastFileNameDot.go
- IsDir.go
- IsExistButDirectory.go
- IsGoModuleOn.go
- IsPathExists.go
- IsSymbolicLink.go
- LastModifiedDateCompare.go
- LocationInfo.go
- ParentDir.go
- PathCombineWithBase.go
- RemoveDoubleUriSeparator.go
- RemoveFromPath.go
- RuneRepeatFixToSingle.go
- SizeCompare.go
- Split.go
- SplitWithoutSlash.go
- getCombinedPathUsingConfigInternal.go
- getFileInfos.go
- isAlphabetChar.go
- isLetter.go
- isLowerCase.go
- isNumber.go
- isStringsContains.go
- isUpperCase.go
- vars.go
- whichPrefix.go