util

package
v1.4.0-image Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFilenames []string = []string{"default.yml", "default.yaml", "default.json"}

Filenames excluded from templating for the purpose of containing default variable values inside a resource set.

Functions

func LoadJsonOrYaml added in v1.2.0

func LoadJsonOrYaml(filename string, addr interface{}) error

Loads either a YAML or JSON file from the specified path and deserialises it into the provided interface.

func Merge

func Merge(in1 *map[string]interface{}, in2 *map[string]interface{}) *map[string]interface{}

Merges two maps together. Values from the second map override values in the first map. The returned map is new if anything was changed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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