pathjoin

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Join

func Join(path1, path2 string, isNormalizePlusLongPathFix bool) string

isNormalizePlusLongPathFix if true then for windows add UNC Path fix

func JoinNormalized

func JoinNormalized(path1, path2 string) string

JoinNormalized normalized applied auto

func JoinNormalized3

func JoinNormalized3(path1, path2, path3 string) string

JoinNormalized3 normalized applied auto

func JoinNormalized3If added in v0.1.2

func JoinNormalized3If(
	isNormalize bool,
	path1, path2, path3 string,
) string

JoinNormalized3If normalized applied auto

func JoinNormalizedIf added in v0.1.2

func JoinNormalizedIf(isNormalize bool, path1, path2 string) string

JoinNormalizedIf normalized applied auto

func JoinSimple

func JoinSimple(path1, path2 string) string

JoinSimple doesn't apply normalize

func JoinSimple3

func JoinSimple3(path1, path2, path3 string) string

JoinSimple3 Doesn't apply normalize

func JoinWithSep

func JoinWithSep(
	isNormalizePlusLongPathFix bool,
	sep string,
	paths ...string,
) string

JoinWithSep isNormalizePlusLongPathFix if true then for windows add UNC Path fix

Types

type Joiner

type Joiner struct {
	// contains filtered or unexported fields
}

func EmptyJoiner

func EmptyJoiner() *Joiner

func NewJoiner

func NewJoiner(capacity int) *Joiner

func NewJoiner5

func NewJoiner5() *Joiner

func (*Joiner) Add

func (receiver *Joiner) Add(addingPath string) *Joiner

func (*Joiner) Adds

func (receiver *Joiner) Adds(addingPaths ...string) *Joiner

func (*Joiner) HasItems

func (receiver *Joiner) HasItems() bool

func (*Joiner) IsEmpty

func (receiver *Joiner) IsEmpty() bool

func (*Joiner) Length

func (receiver *Joiner) Length() int

func (*Joiner) String

func (receiver *Joiner) String() string

normalize and long path fix true

Usages osconsts.PathSeparator as separator

func (*Joiner) ToString

func (receiver *Joiner) ToString(sep string, isNormalizePlusLongPathFix bool) string

ToString isNormalizePlusLongPathFix if true then adds UNC path fix for Windows

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL