types

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbsolutePath

type AbsolutePath string

func NewAbsolutePath

func NewAbsolutePath(path string) AbsolutePath

func RelativeToPWD

func RelativeToPWD(relativePath string) AbsolutePath

func (AbsolutePath) ExtractRelativePath

func (ap AbsolutePath) ExtractRelativePath(baseDirLen int) RelativePath

func (AbsolutePath) Join

func (ap AbsolutePath) Join(other string) AbsolutePath

func (AbsolutePath) JoinPath

func (ap AbsolutePath) JoinPath(other RelativePath) AbsolutePath

func (AbsolutePath) Parent

func (ap AbsolutePath) Parent() AbsolutePath

func (AbsolutePath) Str

func (ap AbsolutePath) Str() string

type RelativePath

type RelativePath string

func (RelativePath) AppendLeft

func (rp RelativePath) AppendLeft(left string) RelativePath

func (RelativePath) IsHidden

func (rp RelativePath) IsHidden() bool

func (RelativePath) MakeAbsolute

func (rp RelativePath) MakeAbsolute(baseDir AbsolutePath) AbsolutePath

func (RelativePath) Parent

func (ap RelativePath) Parent() RelativePath

func (RelativePath) RemoveBaseDir

func (rp RelativePath) RemoveBaseDir(baseDirLen int) RelativePath

func (RelativePath) Replace

func (rp RelativePath) Replace(substring, replacement string) RelativePath

func (RelativePath) Split

func (rp RelativePath) Split() (RelativePath, string)

func (RelativePath) Str

func (rp RelativePath) Str() string

func (RelativePath) TopLevelDir

func (rp RelativePath) TopLevelDir() string

func (RelativePath) Unhide

func (rp RelativePath) Unhide() RelativePath

type SymlinkCollection

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

func NewSymlinkCollection

func NewSymlinkCollection(capacity int) SymlinkCollection

func (*SymlinkCollection) Add

func (sc *SymlinkCollection) Add(linkPath, linkContent AbsolutePath)

func (*SymlinkCollection) Get

func (*SymlinkCollection) Iter

func (*SymlinkCollection) Len

func (sc *SymlinkCollection) Len() int

func (*SymlinkCollection) PrintList

func (sc *SymlinkCollection) PrintList() string

func (*SymlinkCollection) ToJson

func (sc *SymlinkCollection) ToJson() string

Jump to

Keyboard shortcuts

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