Documentation ¶
Index ¶
- Variables
- func FileRead(fn string, ref interface{}) error
- func FileRemove(fn string) error
- func FileWrite(fn string, ref interface{}, perm os.FileMode) error
- func GrepFiles(search string, fps ...Path) ([]string, error)
- func PlainFileRead(fn string) ([]byte, error)
- func PlainFileWrite(fn string, data []byte, perm os.FileMode) error
- func ResolveFile(file string) string
- type Path
- func (p *Path) Chmod(mode os.FileMode) bool
- func (p *Path) Copy(fp string) error
- func (p *Path) DirExists() bool
- func (p *Path) FileExists() bool
- func (p *Path) FileRead(ref interface{}) error
- func (p *Path) FileRemove() error
- func (p *Path) FileWrite(ref interface{}, perm os.FileMode) error
- func (p *Path) GrepFile(search string) (int, error)
- func (p *Path) Join(elem ...string) Path
- func (p *Path) MkdirAll() error
- func (p *Path) ModTime() time.Time
- func (p *Path) Move(fp string) error
- func (p *Path) PlainFileRead() ([]byte, error)
- func (p *Path) PlainFileWrite(data []byte, perm os.FileMode) error
- func (p *Path) Set(path ...string)
- func (p *Path) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var RcFiles = []Path{ {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, }
Functions ¶
func PlainFileRead ¶
PlainFileRead Retrieves data from a local file.
func PlainFileWrite ¶
PlainFileWrite Saves data to a file path.
func ResolveFile ¶
Types ¶
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
func (*Path) FileExists ¶
func (*Path) PlainFileRead ¶
PlainFileRead Retrieves data from a local file.
func (*Path) PlainFileWrite ¶
PlainFileWrite Saves data to a file path.
Click to show internal directories.
Click to hide internal directories.