Documentation
¶
Index ¶
- func CurrentDirectory() string
- func DbPath(first, second string) string
- func DbPaths(locations ...string) string
- func DirByStackSkip(stackSkip int) string
- func FilePathOfCaller(callerIndex int) string
- func FixPath(isNormalizePlusLogPathFix, isExpand bool, location string) string
- func FixPathPtr(isNormalizePlusLogPathFix, isExpand bool, location string) *string
- func JoinBaseDirWithSep(isSkipEmpty, isExpandEnvVariables, isNormalizePlusLongPathFix bool, sep string, ...) string
- func JoinConditionalNormalizedExpandIf(isNormalizePlusLongPathFix, isExpand bool, path1, path2 string) string
- func JoinConditionalNormalizedThreeExpandIf(isNormalizePlusLongPathFix, isExpand bool, first, second, third string) string
- func JoinFix(baseDir string, paths ...string) string
- func JoinFixWithoutLongPath(baseDir string, paths ...string) string
- func JoinFixedIf(isFixed bool, baseDir string, paths ...string) string
- func JoinFixedThree(first, second, third string) string
- func JoinIf(isNormalizePlusLongPathFix bool, path1, path2 string) string
- func JoinNormalized(first, second string) string
- func JoinNormalizedExpand(path1, path2 string) string
- func JoinNormalizedExpandIf(isExpandNormalize bool, path1, path2 string) string
- func JoinNormalizedExpandThree(first, second, third string) string
- func JoinNormalizedIf(isNormalize bool, path1, path2 string) string
- func JoinNormalizedThree(first, second, third string) string
- func JoinNormalizedThreeExpandIf(isExpandNormalize bool, first, second, third string) string
- func JoinNormalizedThreeIf(isNormalize bool, first, second, third string) string
- func JoinPrefix(prefix, main string) string
- func JoinPrefixSuffix(prefix, main, suffix string) string
- func JoinPrefixSuffixIf(isFix, isExpand bool, prefix, main, suffix string) string
- func JoinSimple(first, second string) string
- func JoinSimpleBaseWithMany(baseDir string, relatives ...string) string
- func JoinSimpleIf(isUseLibraryFunc bool, path1, path2 string) string
- func JoinSimpleMany(relatives ...string) string
- func JoinSimpleThree(first, second, third string) string
- func JoinSuffix(main, suffix string) string
- func JoinWithBaseDirSep(isSkipEmpty, isExpandEnvVariables, isNormalizePlusLongPathFix bool, sep string, ...) string
- func JoinWithCurDir(isNormalize, isExpandEnv bool, paths ...string) string
- func JoinWithCurDirUsingCallStack(isNormalize, isExpandEnv bool, frameStackSkip int, paths ...string) string
- func JoinWithSep(isSkipEmpty, isExpandEnvVariables, isNormalizePlusLongPathFix bool, sep string, ...) string
- func JoinsNormalizedExpandIf(isExpandNormalize bool, baseDir string, relatives ...string) string
- func JoinsNormalizedIf(isNormalize bool, baseDir string, relatives ...string) string
- func TrimReplacePrefixRoot(isNormalize, isLongPathForceFix bool, ...) string
- func TrimReplacePrefixRootJoinSuffix(isNormalize, isLongPathForceFix bool, ...) string
- func TrimReplacePrefixRootNormalized(source, trimRootPrefix, rootReplacer string) string
- func TrimReplacePrefixRoots(isNormalize, isLongPathForceFix bool, baseLocations []string, ...) []string
- func WithRoot(paths ...string) string
- func WithTemp(locations ...string) string
- func WithTempPlus(isNormalizeLongPathFix, isExpandEnvVar bool, baseDir string, ...) string
- func WithTempPlusDefaults(baseDir string, locations ...string) string
- func WithTempTest(paths ...string) string
- type Joiner
- func (it *Joiner) Add(addingPath string) *Joiner
- func (it *Joiner) Adds(addingPaths ...string) *Joiner
- func (it *Joiner) HasItems() bool
- func (it *Joiner) IsEmpty() bool
- func (it *Joiner) Length() int
- func (it *Joiner) OsSeparatorJoin(isExpandEnvVars, isNormalizePlusLongPathFix bool) string
- func (it *Joiner) OsSeparatorJoinExpand(isNormalizePlusLongPathFix bool) string
- func (it *Joiner) OsSeparatorJoinNormalized(isExpandEnvVars bool) string
- func (it Joiner) String() string
- func (it *Joiner) ToString(isExpandEnvVars, isNormalizePlusLongPathFix bool, sep string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentDirectory ¶ added in v0.3.9
func CurrentDirectory() string
func DirByStackSkip ¶ added in v0.5.2
func FilePathOfCaller ¶ added in v0.3.9
func FixPathPtr ¶ added in v0.3.8
FixPathPtr normalized or expand or both apply based on condition
func JoinBaseDirWithSep ¶ added in v0.2.5
func JoinBaseDirWithSep( isSkipEmpty, isExpandEnvVariables, isNormalizePlusLongPathFix bool, sep string, baseDir string, paths ...string, ) string
JoinBaseDirWithSep isNormalizePlusLongPathFix if true then for windows add UNC Location fix
Omits baseDir if not given
func JoinConditionalNormalizedExpandIf ¶ added in v0.2.6
func JoinConditionalNormalizedExpandIf( isNormalizePlusLongPathFix, isExpand bool, path1, path2 string, ) string
JoinConditionalNormalizedExpandIf normalized or expand or both apply based on condition
func JoinConditionalNormalizedThreeExpandIf ¶ added in v0.6.4
func JoinConditionalNormalizedThreeExpandIf( isNormalizePlusLongPathFix, isExpand bool, first, second, third string, ) string
JoinConditionalNormalizedThreeExpandIf normalized or expand or both apply based on condition
func JoinFixWithoutLongPath ¶ added in v0.3.9
JoinFixWithoutLongPath
Items are applied with normalize, skip on empty path given
func JoinFixedIf ¶ added in v0.4.0
JoinFixedIf
isNormalizePlusLongPathFix if true then for windows add UNC Location fix
func JoinFixedThree ¶ added in v0.6.4
func JoinIf ¶ added in v0.3.3
JoinIf isNormalizePlusLongPathFix if true then for windows add UNC Location fix
func JoinNormalized ¶
JoinNormalized normalized applied auto
func JoinNormalizedExpand ¶ added in v0.2.5
JoinNormalizedExpand normalized and expand applied auto
func JoinNormalizedExpandIf ¶ added in v0.2.5
JoinNormalizedExpandIf normalized and expand applied if condition meets
func JoinNormalizedExpandThree ¶ added in v0.6.2
JoinNormalizedExpandThree normalized and expand applied auto
func JoinNormalizedIf ¶ added in v0.1.2
JoinNormalizedIf normalized applied auto
func JoinNormalizedThree ¶ added in v0.6.2
JoinNormalizedThree normalized applied auto
func JoinNormalizedThreeExpandIf ¶ added in v0.6.4
JoinNormalizedThreeExpandIf normalized and expand applied if condition meets
func JoinNormalizedThreeIf ¶ added in v0.6.4
JoinNormalizedThreeIf normalized applied auto
func JoinPrefixSuffix ¶ added in v0.6.4
JoinPrefixSuffix
only adds prefix if not exist in main only adds suffix if not exist in main
func JoinPrefixSuffixIf ¶ added in v0.6.4
JoinPrefixSuffixIf
only adds prefix if not exist in main (given empty prefix will ignore) only adds suffix if not exist in main (given empty suffix will ignore)
func JoinSimpleBaseWithMany ¶ added in v0.7.0
JoinSimpleBaseWithMany doesn't apply normalize
func JoinSimpleIf ¶ added in v0.3.6
JoinSimpleIf doesn't apply normalize
func JoinSimpleMany ¶ added in v0.7.0
JoinSimpleMany doesn't apply normalize
func JoinSimpleThree ¶ added in v0.6.4
JoinSimpleThree Doesn't apply normalize
func JoinWithBaseDirSep ¶ added in v0.7.0
func JoinWithBaseDirSep( isSkipEmpty, isExpandEnvVariables, isNormalizePlusLongPathFix bool, sep string, baseDir string, relativePaths ...string, ) string
JoinWithBaseDirSep
isNormalizePlusLongPathFix if true then for windows add UNC Location fix
func JoinWithCurDir ¶ added in v0.3.9
func JoinWithCurDirUsingCallStack ¶ added in v0.4.0
func JoinWithSep ¶
func JoinWithSep( isSkipEmpty, isExpandEnvVariables, isNormalizePlusLongPathFix bool, sep string, relativePaths ...string, ) string
JoinWithSep isNormalizePlusLongPathFix if true then for windows add UNC Location fix
func JoinsNormalizedExpandIf ¶ added in v0.2.5
JoinsNormalizedExpandIf normalized and expand applied if condition meets
func JoinsNormalizedIf ¶ added in v0.2.5
JoinsNormalizedIf normalized and expand applied if condition meets
func TrimReplacePrefixRoot ¶ added in v0.4.3
func TrimReplacePrefixRootJoinSuffix ¶ added in v0.4.3
func TrimReplacePrefixRootNormalized ¶ added in v0.4.9
func TrimReplacePrefixRoots ¶ added in v0.4.3
func WithTemp ¶ added in v0.2.7
WithTemp
LongPath JoinFix, EnvVarExpand, skip on empty path Windows - "%temp%\locations\..." Unix - "/tmp/locations/..."
func WithTempPlus ¶ added in v0.2.7
func WithTempPlus( isNormalizeLongPathFix, isExpandEnvVar bool, baseDir string, locations ...string, ) string
WithTempPlus
skip on empty path and others optional Windows - "%temp%\locations\..." Unix - "/tmp/locations/..."
func WithTempPlusDefaults ¶ added in v0.2.7
func WithTempTest ¶ added in v0.2.8
Types ¶
type Joiner ¶
type Joiner struct {
// contains filtered or unexported fields
}
func EmptyJoiner ¶
func EmptyJoiner() *Joiner
func NewJoiner5 ¶
func NewJoiner5() *Joiner
func (*Joiner) OsSeparatorJoin ¶ added in v0.2.5
OsSeparatorJoin
Usages osconsts.PathSeparator as separator
func (*Joiner) OsSeparatorJoinExpand ¶ added in v0.2.5
func (*Joiner) OsSeparatorJoinNormalized ¶ added in v0.2.5
Source Files
¶
- CurrentDirectory.go
- DbPath.go
- DbPaths.go
- DirByStackSkip.go
- FilePathOfCaller.go
- FixPath.go
- FixPathPtr.go
- JoinBaseDirWithSep.go
- JoinConditionalNormalizedExpandIf.go
- JoinConditionalNormalizedThreeExpandIf.go
- JoinFix.go
- JoinFixWithoutLongPath.go
- JoinFixedIf.go
- JoinFixedThree.go
- JoinIf.go
- JoinNormalized.go
- JoinNormalizedExpand.go
- JoinNormalizedExpandIf.go
- JoinNormalizedExpandThree.go
- JoinNormalizedIf.go
- JoinNormalizedThree.go
- JoinNormalizedThreeExpandIf.go
- JoinNormalizedThreeIf.go
- JoinPrefix.go
- JoinPrefixSuffix.go
- JoinPrefixSuffixIf.go
- JoinSimple.go
- JoinSimpleBaseWithMany.go
- JoinSimpleIf.go
- JoinSimpleMany.go
- JoinSimpleThree.go
- JoinSuffix.go
- JoinWithBaseDirSep.go
- JoinWithCurDir.go
- JoinWithCurDirUsingCallStack.go
- JoinWithSep.go
- Joiner.go
- JoinsNormalizedExpandIf.go
- JoinsNormalizedIf.go
- TrimReplacePrefixRoot.go
- TrimReplacePrefixRootJoinSuffix.go
- TrimReplacePrefixRootNormalized.go
- TrimReplacePrefixRoots.go
- WithRoot.go
- WithTemp.go
- WithTempPlus.go
- WithTempPlusDefaults.go
- WithTempTest.go