Documentation ¶
Index ¶
- func Close(err error, closer io.Closer) error
- func CreateIfNotExists(dir string) error
- func CreateInWorkingDir(dir string) (string, error)
- func GetInWorkingDir(dir string) (string, error)
- func ReadFile(filename string) ([]byte, error)
- func RemoveFromWorkingDir(dir string) error
- func StringSliceContains(slice []string, items []string) bool
- func StringSliceExists(slice []string, item string) bool
- func StringSliceUniqueAdd(slice *[]string, item string) bool
- func WithFile(name string, flag int, perm os.FileMode, consumer func(out io.Writer) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIfNotExists ¶ added in v0.11.0
CreateIfNotExists --.
func CreateInWorkingDir ¶ added in v0.11.0
CreateInWorkingDir --.
func GetInWorkingDir ¶ added in v0.11.0
GetInWorkingDir --.
func RemoveFromWorkingDir ¶ added in v0.11.0
RemoveFromWorkingDir --.
func StringSliceContains ¶
StringSliceContains --.
func StringSliceExists ¶
StringSliceExists --.
func StringSliceUniqueAdd ¶
StringSliceUniqueAdd append the given item if not already present in the slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.