Documentation
¶
Index ¶
- type FilePath
- func (f FilePath) Abs() (FilePath, error)
- func (f FilePath) Base() string
- func (f FilePath) Dir() FilePath
- func (f FilePath) Ext() string
- func (f FilePath) HasExt(ext string) bool
- func (f FilePath) IsAbs() bool
- func (f FilePath) IsDir() bool
- func (f FilePath) IsExist() bool
- func (f FilePath) IsFile() bool
- func (f FilePath) IsGitRepo() bool
- func (f FilePath) Join(path ...string) FilePath
- func (f FilePath) Match(pattern string) bool
- func (f FilePath) Rel(base string) (FilePath, error)
- func (f FilePath) String() string
- func (f FilePath) Walk(fn walkFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilePath ¶
type FilePath string
func New ¶
New returns a file path. if you call some method on filePath object, will not change its original content
func (FilePath) Join ¶
Join joins any number of path elements into a single path, adding a separator
Click to show internal directories.
Click to hide internal directories.