Documentation ¶
Index ¶
- Constants
- Variables
- func GetFieldValue(f interface{}, name string) (retVal reflect.Value, err error)
- func GetMatches(source string) [][]string
- func GetReferenceValue(object interface{}, name string) (reflect.Value, error)
- func ParseReferences(st interface{}, varName []string) interface{}
- func ParseVariables(src string, re *regexp.Regexp) [][]string
- func Replace(to interface{}, root interface{}) error
- func ReplaceMap(m map[string]interface{}, root interface{}) error
- func ReplaceStringVariables(source string, t interface{}) interface{}
Constants ¶
View Source
const (
EmptyString = ""
)
Variables ¶
Functions ¶
func GetFieldValue ¶
GetFieldValue get filed value in reflected format
func GetReferenceValue ¶
func ParseReferences ¶
func ParseReferences(st interface{}, varName []string) interface{}
ParseReferences parse the variable references
func ParseVariables ¶
ParseVariables parse reference and env variables
func Replace ¶
func Replace(to interface{}, root interface{}) error
Replace given env and reference variables inside specific struct
func ReplaceMap ¶
ReplaceMap replace references and env variables
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.