copier

package
v0.0.0-...-437b0eb Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2017 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src interface{}) interface{}

Copy creates a deep copy of whatever is passed to it and returns the copy in an interface{}. The returned value will need to be asserted to the correct type.

func CopyWithReplacements

func CopyWithReplacements(src interface{}, replacementsFunc func(string) string, replaceIn ...string) interface{}

CopyWithReplacements does deep copy of the object and performs string substitution for the string fields

func EvaluateString

func EvaluateString(template string, replacementsFunc func(string) string) string

EvaluateString expands all variables in the string and returns evaluated result

Types

This section is empty.

Jump to

Keyboard shortcuts

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