Documentation ¶
Index ¶
- Constants
- func Abs(p string) (string, error)
- func AbsPath(p here.Path) (string, error)
- func Apply(pkg pkging.Pkger, err error) error
- func Create(p string) (pkging.File, error)
- func Current() (here.Info, error)
- func Info(p string) (here.Info, error)
- func MkdirAll(p string, perm os.FileMode) error
- func Open(p string) (pkging.File, error)
- func Parse(p string) (here.Path, error)
- func Remove(name string) error
- func RemoveAll(name string) error
- func Stat(name string) (os.FileInfo, error)
- func Walk(p string, wf filepath.WalkFunc) error
- type Dir
Constants ¶
const Version = "v0.8.0"
Version of pkger
Variables ¶
This section is empty.
Functions ¶
func Abs ¶
Abs returns an absolute representation of path. If the path is not absolute it will be joined with the current working directory to turn it into an absolute path. The absolute path name for a given file is not guaranteed to be unique. Abs calls Clean on the result.
func AbsPath ¶
AbsPath returns an absolute representation of here.Path. If the path is not absolute it will be joined with the current working directory to turn it into an absolute path. The absolute path name for a given file is not guaranteed to be unique. AbsPath calls Clean on the result.
func Apply ¶
Apply will wrap the current implementation of pkger.Pkger with the new pkg. This allows for layering of pkging.Pkger implementations.
func Create ¶
Create creates the named file with mode 0666 (before umask) - It's actually 0644, truncating it if it already exists. If successful, methods on the returned File can be used for I/O; the associated file descriptor has mode O_RDWR.
func MkdirAll ¶
MkdirAll creates a directory named path, along with any necessary parents, and returns nil, or else returns an error. The permission bits perm (before umask) are used for all directories that MkdirAll creates. If path is already a directory, MkdirAll does nothing and returns nil.
func Open ¶
Open opens the named file for reading. If successful, methods on the returned file can be used for reading; the associated file descriptor has mode O_RDONLY.
func RemoveAll ¶
RemoveAll removes path and any children it contains. It removes everything it can but returns the first error it encounters. If the path does not exist, RemoveAll returns nil (no error).
func Walk ¶
Walk walks the file tree rooted at root, calling walkFn for each file or directory in the tree, including root. All errors that arise visiting files and directories are filtered by walkFn. The files are walked in lexical order, which makes the output deterministic but means that for very large directories Walk can be inefficient. Walk does not follow symbolic links. - That is from the standard library. I know. Their grammar teachers can not be happy with them right now.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
examples
|
|
app
Module
|
|
complex
Module
|
|
complex/api
Module
|
|
extfile
Module
|
|
httpserver
Module
|
|
walk
Module
|
|
internal
|
|
examples/app
Module
|
|
examples/httpserver
Module
|
|
examples/walk
Module
|
|