Documentation ¶
Index ¶
- func Copy(src, dest string) error
- func CopyDir(src, dest string) error
- func CopyFile(src, dest string) error
- func CopySymlink(src, dest string) error
- func DirExists(name string) (bool, error)
- func EnvMapToSlice(values map[string]string) []string
- func EnvMapToString(values map[string]string) string
- func EnvMergeMaps(values ...map[string]string) map[string]string
- func EnvMergeSlices(values ...[]string) []string
- func EnvSliceToMap(values []string) map[string]string
- func Exist(name string) bool
- func GetenvDefault(key, fallback string) string
- func Remove(names ...string) error
- func RemoveAll(paths ...string) error
- func Touch(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopySymlink ¶
CopySymlink copies file under symbolic link.
func EnvMapToSlice ¶ added in v0.11.0
EnvMapToSlice transform a map of key value to a slice of env in the form "key=value". Env vars are sorted by names to get an accurate order while testing.
func EnvMapToString ¶ added in v0.11.0
EnvMapToString transform a map of key value to a string in the form "key=value;key1=value1". Env vars are sorted by names to get an accurate order while testing.
func EnvMergeMaps ¶ added in v0.11.0
EnvMergeMaps merges multiple maps into single one. If the same key exist multiple time, it will be overwritten by the latest occurrence.
func EnvMergeSlices ¶ added in v0.11.0
EnvMergeSlices merges multiple slices into single one. If the same key exist multiple time, it will be added in occurrence order.
func EnvSliceToMap ¶ added in v0.11.0
EnvSliceToMap transform a slice of key=value to a map.
func GetenvDefault ¶
GetenvDefault retrieves the value of the environment variable named by the key. It returns the value, which will be set to fallback if the variable is empty.
Types ¶
This section is empty.