utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescribeUnmarshalError

func DescribeUnmarshalError(data string, err error)

DescribeUnmarshalError pretty prints the error that occured when it attempted to convert the result to YAML.

This means that it generated a content that can not be parsed into YAML. This certainly is developer's issue and our job now is to help the developer out as much as possible. The `yaml` library prints out a error message with the line number in the content that it thinks had the error. So we dump the content line by line with line numbers printed at the left for easier navigation. See https://github.com/pavlo/heatit/issues/7

func ParseYamlFile

func ParseYamlFile(path string) (map[interface{}]interface{}, error)

func ReadTextFile

func ReadTextFile(filename string) (string, error)

func WriteTextFile

func WriteTextFile(filename string, content []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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