util

package
v1.0.26 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) (err error)

func FindClosestParentPath

func FindClosestParentPath(fileName string) (string, error)

func FindParentPaths

func FindParentPaths(fileName string) []string

func FuzzyAge

func FuzzyAge(start string) (string, error)

func JsonDecode

func JsonDecode(io io.Reader) interface{}

func JsonEncode

func JsonEncode(data interface{}) (string, error)

func JsonWrite

func JsonWrite(file string, data interface{})

func Mkdir

func Mkdir(dir string) error

func ParseYaml

func ParseYaml(file string, opts *map[string]interface{})

func ReadFile

func ReadFile(file string) string

func ResponseToJson

func ResponseToJson(resp *http.Response, err error) (interface{}, error)

func RunTemplate

func RunTemplate(templateContent string, data interface{}, out io.Writer) error

func YamlFixup

func YamlFixup(data interface{}) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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