Documentation
¶
Index ¶
- func Convert(from, to interface{}) error
- func Copy(d interface{}) interface{}
- func DecodeBase64Content(content string) ([]byte, error)
- func DecodeContent(content string, encoding string) ([]byte, error)
- func DecodeGzipContent(content string) ([]byte, error)
- func DecompressGzip(content []byte) ([]byte, error)
- func EnsureDirectoryExists(dir string) error
- func Env2Map(env []string) map[string]string
- func ExistsAndExecutable(path string) bool
- func FileCopy(src, dest string) error
- func FilterKeys(data map[interface{}]interface{}, key []string) (filtered, rest map[interface{}]interface{})
- func GenTemplate(in io.Reader, out io.Writer) error
- func GetValue(args string, data map[interface{}]interface{}) (interface{}, map[interface{}]interface{})
- func HTTPDownloadToFile(url, dest string) error
- func HTTPLoadBytes(url string) ([]byte, error)
- func MapCopy(data map[interface{}]interface{}) map[interface{}]interface{}
- func RunScript(path string, arg ...string) error
- func SetValue(args string, data map[interface{}]interface{}, value interface{}) (interface{}, map[interface{}]interface{})
- func SliceCopy(data []interface{}) []interface{}
- func UnescapeKernelParams(s string) string
- func UnmarshalValue(value string) (result interface{})
- func WriteFileAtomic(filename string, data []byte, perm os.FileMode) error
- func WriteToFile(data interface{}, filename string) error
- func Yes(question string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBase64Content ¶
func DecodeGzipContent ¶
func DecompressGzip ¶
func EnsureDirectoryExists ¶
func ExistsAndExecutable ¶
func FilterKeys ¶
func FilterKeys(data map[interface{}]interface{}, key []string) (filtered, rest map[interface{}]interface{})
func GetValue ¶
func GetValue(args string, data map[interface{}]interface{}) (interface{}, map[interface{}]interface{})
func HTTPDownloadToFile ¶
func HTTPLoadBytes ¶
func SetValue ¶
func SetValue(args string, data map[interface{}]interface{}, value interface{}) (interface{}, map[interface{}]interface{})
func UnescapeKernelParams ¶
func UnmarshalValue ¶
func UnmarshalValue(value string) (result interface{})
func WriteToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.