Documentation ¶
Index ¶
- type BaseName
- type RawPath
- func (r RawPath) Base() string
- func (r RawPath) Dir() RawPath
- func (r RawPath) Ext() string
- func (r RawPath) IsAbs() bool
- func (r RawPath) JoinBaseName(others ...BaseName) RawPath
- func (r RawPath) JoinRawPath(other RawPath) RawPath
- func (r RawPath) Rel(path RawPath) (RawPath, error)
- func (r RawPath) ToSlash() SlashPath
- func (r RawPath) TrimLastSep() RawPath
- type SlashPath
- func (s SlashPath) Dir() SlashPath
- func (s SlashPath) Ext() string
- func (s SlashPath) IsAbs() bool
- func (s SlashPath) JoinBaseName(other BaseName) SlashPath
- func (s SlashPath) JoinSlashPath(other SlashPath) SlashPath
- func (s SlashPath) Split() (SlashPath, BaseName)
- func (s SlashPath) ToRaw() RawPath
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RawPath ¶
type RawPath string
RawPath is OS depended path. This style is for directly handling file systems.
func NewRawPath ¶
func NewRawPathUnsafe ¶
func NewRootRawPath ¶
func (RawPath) JoinBaseName ¶
func (RawPath) JoinRawPath ¶
func (RawPath) TrimLastSep ¶
type SlashPath ¶
type SlashPath string
SlashPath is slash separated path. Typically, Git uses the Slash Path.
func NewSlashPathUnsafe ¶
func SlashPathFromBaseName ¶
func (SlashPath) JoinBaseName ¶
func (SlashPath) JoinSlashPath ¶
Click to show internal directories.
Click to hide internal directories.