Documentation
¶
Index ¶
- func CurrentDirectory() string
- func FilePathOfCaller(callerIndex int) string
- func FixPath(isNormalizePlusLogPathFix, isExpand bool, location string) string
- func FixPathPtr(isNormalizePlusLogPathFix, isExpand bool, location string) *string
- func Fixed2(path1, path2 string) string
- func Fixed3(path1, path2, path3 string) string
- func FixedIf(isFixed bool, baseDir string, paths ...string) string
- func JoinBaseDirWithSep(isSkipEmpty, isExpandEnvVariables, isNormalizePlusLongPathFix bool, sep string, ...) string
- func JoinConditionalNormalized3ExpandIf(isNormalizePlusLongPathFix, isExpand bool, path1, path2, path3 string) string
- func JoinConditionalNormalizedExpandIf(isNormalizePlusLongPathFix, isExpand bool, path1, path2 string) string
- func JoinFix(baseDir string, paths ...string) string
- func JoinFixWithoutLongPath(baseDir string, paths ...string) string
- func JoinIf(isNormalizePlusLongPathFix bool, path1, path2 string) string
- func JoinNormalized(path1, path2 string) string
- func JoinNormalized3(path1, path2, path3 string) string
- func JoinNormalized3ExpandIf(isExpandNormalize bool, path1, path2, path3 string) string
- func JoinNormalized3If(isNormalize bool, path1, path2, path3 string) string
- func JoinNormalizedExpand(path1, path2 string) string
- func JoinNormalizedExpand3(path1, path2, path3 string) string
- func JoinNormalizedExpandIf(isExpandNormalize bool, path1, path2 string) string
- func JoinNormalizedIf(isNormalize bool, path1, path2 string) string
- func JoinSimple(path1, path2 string) string
- func JoinSimple3(path1, path2, path3 string) string
- func JoinSimple3ConditionalNonEmpty(path1, path2, path3 string) string
- func JoinSimpleConditionalNonEmpty(path1, path2 string) string
- func JoinSimpleIf(isUseLibraryFunc bool, path1, path2 string) string
- func JoinWithCurDir(isNormalize, isLongPathFix, isExpandEnv bool, 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 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 FilePathOfCaller ¶ added in v0.3.9
func FixPathPtr ¶ added in v0.3.8
FixPathPtr normalized or expand or both apply based on condition
func FixedIf ¶ added in v0.2.8
FixedIf
isNormalizePlusLongPathFix if true then for windows add UNC Location fix
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 JoinConditionalNormalized3ExpandIf ¶ added in v0.2.7
func JoinConditionalNormalized3ExpandIf( isNormalizePlusLongPathFix, isExpand bool, path1, path2, path3 string, ) string
JoinConditionalNormalized3ExpandIf normalized or expand or both apply based on condition
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 JoinFixWithoutLongPath ¶ added in v0.3.9
JoinFixWithoutLongPath
Items are applied with normalize, skip on empty path given
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 JoinNormalized3 ¶
JoinNormalized3 normalized applied auto
func JoinNormalized3ExpandIf ¶ added in v0.2.5
JoinNormalized3ExpandIf normalized and expand applied if condition meets
func JoinNormalized3If ¶ added in v0.1.2
JoinNormalized3If normalized applied auto
func JoinNormalizedExpand ¶ added in v0.2.5
JoinNormalizedExpand normalized and expand applied auto
func JoinNormalizedExpand3 ¶ added in v0.2.5
JoinNormalizedExpand3 normalized and expand applied auto
func JoinNormalizedExpandIf ¶ added in v0.2.5
JoinNormalizedExpandIf normalized and expand applied if condition meets
func JoinNormalizedIf ¶ added in v0.1.2
JoinNormalizedIf normalized applied auto
func JoinSimple3 ¶
JoinSimple3 Doesn't apply normalize
func JoinSimple3ConditionalNonEmpty ¶ added in v0.2.7
JoinSimple3ConditionalNonEmpty Doesn't apply normalize or doesn't join if empty
func JoinSimpleConditionalNonEmpty ¶ added in v0.2.7
JoinSimpleConditionalNonEmpty Don't apply normalize or not join if empty
func JoinSimpleIf ¶ added in v0.3.6
JoinSimpleIf doesn't apply normalize
func JoinWithCurDir ¶ added in v0.3.9
func JoinWithSep ¶
func JoinWithSep( isSkipEmpty, isExpandEnvVariables, isNormalizePlusLongPathFix bool, sep string, paths ...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 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
- FilePathOfCaller.go
- FixPath.go
- FixPathPtr.go
- Fixed.go
- Fixed2.go
- Fixed3.go
- FixedIf.go
- JoinBaseDirWithSep.go
- JoinConditionalNormalized3ExpandIf.go
- JoinConditionalNormalizedExpandIf.go
- JoinFixWithoutLongPath.go
- JoinIf.go
- JoinNormalized.go
- JoinNormalized3.go
- JoinNormalized3ExpandIf.go
- JoinNormalized3If.go
- JoinNormalizedExpand.go
- JoinNormalizedExpand3.go
- JoinNormalizedExpandIf.go
- JoinNormalizedIf.go
- JoinSimple.go
- JoinSimple3.go
- JoinSimple3ConditionalNonEmpty.go
- JoinSimpleConditionalNonEmpty.go
- JoinSimpleIf.go
- JoinWithCurDir.go
- JoinWithSep.go
- Joiner.go
- JoinsNormalizedExpandIf.go
- JoinsNormalizedIf.go
- WithRoot.go
- WithTemp.go
- WithTempPlus.go
- WithTempPlusDefaults.go
- WithTempTest.go