Documentation
¶
Index ¶
- type AbsolutePath
- type RelativePath
- func (rp RelativePath) AppendLeft(left string) RelativePath
- func (rp RelativePath) IsHidden() bool
- func (rp RelativePath) MakeAbsolute(baseDir AbsolutePath) AbsolutePath
- func (ap RelativePath) Parent() RelativePath
- func (rp RelativePath) RemoveBaseDir(baseDirLen int) RelativePath
- func (rp RelativePath) Replace(substring, replacement string) RelativePath
- func (rp RelativePath) Split() (RelativePath, string)
- func (rp RelativePath) Str() string
- func (rp RelativePath) TopLevelDir() string
- func (rp RelativePath) Unhide() RelativePath
- type SymlinkCollection
- func (sc *SymlinkCollection) Add(linkPath, linkContent AbsolutePath)
- func (sc *SymlinkCollection) Get(linkPath AbsolutePath) optional.Optional[AbsolutePath]
- func (sc *SymlinkCollection) Iter() map[AbsolutePath]AbsolutePath
- func (sc *SymlinkCollection) Len() int
- func (sc *SymlinkCollection) PrintList() string
- func (sc *SymlinkCollection) ToJson() string
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 (sc *SymlinkCollection) Get(linkPath AbsolutePath) optional.Optional[AbsolutePath]
func (*SymlinkCollection) Iter ¶
func (sc *SymlinkCollection) Iter() map[AbsolutePath]AbsolutePath
func (*SymlinkCollection) Len ¶
func (sc *SymlinkCollection) Len() int
func (*SymlinkCollection) PrintList ¶
func (sc *SymlinkCollection) PrintList() string
func (*SymlinkCollection) ToJson ¶
func (sc *SymlinkCollection) ToJson() string
Click to show internal directories.
Click to hide internal directories.