utils

package
v0.2.23 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(srcFile, dstFile string) error

func CopyDirectory

func CopyDirectory(src, dest string, filter string) error
func CopySymLink(source, dest string) error

func CreateDir

func CreateDir(dir string, perm os.FileMode) error

func EnvToList

func EnvToList(env map[string]string) []string

func Exists

func Exists(filePath string) bool

func GetMapValues

func GetMapValues(m map[string]string) []string

func MergeEnvs

func MergeEnvs(env1, env2 map[string]string) map[string]string

func ParseEnvLines

func ParseEnvLines(lines []string) map[string]string

func RandSeq

func RandSeq(n int) string

func ReadLines

func ReadLines(r io.Reader) ([]string, error)

func SplitEnvLine

func SplitEnvLine(line string) (string, string)

func StringInSlice

func StringInSlice(a string, list []string) bool

func WriteEnv

func WriteEnv(env map[string]string, w io.Writer) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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