fs

package
v0.13.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendToFile

func AppendToFile(s string, filename string) error

AppendToFile write s to the end of filename

func EnsureDir

func EnsureDir(dir string) error

EnsureDir creates directory if it doesnt exist

func FileExist

func FileExist(path string) bool

FileExist check if path exist

func GetDir

func GetDir(devEnv bool) (string, error)

GetDir returns the program root directory

func OverwriteFile

func OverwriteFile(s string, filename string) error

OverwriteFile truncate filename and write s into it

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL