Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CrossProduct ¶
func Expand ¶
Expand shell-like variable references (from 'lookup') into string fields and map values of 'obj', recursively.
The recursion will navigate maps and public fields of structs, but will leave objects with unexported fields untouched so as not to disrupt complex types with internal private state.
This results in the most intuitive behavior where calling Expand on a value of the following type:
type MyType struct { Name string Pattern *regexp.Regexp }
will do the sensible thing of processing Name but leaving Pattern alone (the *regexp.Regexp pointer will be copied unmodified to the result object).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.