Documentation
¶
Overview ¶
Package io provides some helpful IO functions with simplified signatures in the context of eclectica package
Index ¶
- func CreateDir(path string) (string, error)
- func ExtractVersion(file string) (string, error)
- func FindDotFile(args ...interface{}) (versionPath string, err error)
- func GetVersion(args ...interface{}) (version, path string, err error)
- func ListVersions(path string) (vers []string)
- func Read(path string) string
- func Symlink(current, base string) (err error)
- func WriteFile(path, content string) error
- type Walker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractVersion ¶
ExtractVersion from the string
func FindDotFile ¶
FindDotFile finds file up in the filesystem tree by provided list of possible files
func GetVersion ¶
GetVersion finds a file by provided argument and extracts the version defined in it
func ListVersions ¶
ListVersions lists installed versions for the given path
Types ¶
Click to show internal directories.
Click to hide internal directories.