Documentation ¶
Index ¶
- Variables
- func Expand(p string) (path string)
- func InitLog()
- type Path
- func (p *Path) Base() string
- func (p *Path) Clean() string
- func (p *Path) Dir() string
- func (p *Path) Ensure() error
- func (p *Path) Ext() string
- func (p *Path) FileInfo() (info os.FileInfo)
- func (p *Path) Find(pattern string) (path string)
- func (p *Path) Glob(pattern string) (matches []string)
- func (p *Path) IsExist() bool
- func (p *Path) Join(elem ...string) (path *Path)
- func (p *Path) MakeDir() error
- func (p *Path) MakeDirAll() error
- func (p *Path) Match(pattern string) (matched bool)
- func (p *Path) Open() (io.ReadCloser, error)
- func (p *Path) Remove() error
- func (p *Path) Split() (dir, name string)
- func (p *Path) String() string
- func (p *Path) WithExt(ext string) *Path
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HomeDir 用户家目录 HomeDir string // TempDir 临时目录 TempDir string // Home 家目录 Home *Path )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.