Documentation ¶
Index ¶
- Variables
- func AppendFile(filename string, content string) (val i, err error)
- func CurDir() (str i, err error)
- func Exists(filename string) (val i, err error)
- func Input(prompt string) (input i, err error)
- func NewDir(dirname string) (val i, err error)
- func NewFile(filename string) (val i, err error)
- func ReadDir(dir string) (val i, err error)
- func ReadFile(filename string) (str i, err error)
- func WriteFile(filename string, content string) (val i, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidPath = errors.New("invalid path, line %d")
)
Functions ¶
func AppendFile ¶ added in v1.2.0
Appends content to file. func appendFile(filename string, content string)
func CurDir ¶ added in v1.2.0
func CurDir() (str i, err error)
Returns current working directory func curDir() string
func NewFile ¶ added in v1.2.0
Creates new file. If the file already exists it will be overwritten. func newFile(name string)
func ReadDir ¶ added in v1.2.0
Returns list of files/directories in dir. func readDir(dir string) []string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.