Documentation ¶
Overview ¶
package picker provided structures and method to manage injected variable system for Godog.
It allows an user to pick value into a store and inject them in steps through a variable replacement.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidPathElement indicates an element from interface structure is not valid to go into array/slice. ErrInvalidPathElement = errors.New("path element is not an integer on Array/Slice") )
Functions ¶
func GenerateFieldList ¶
func GenerateFieldList(obj interface{}) (res []string)
func GetFieldFromPath ¶
GetFieldFromPath help to recover data from interface It will go through the interface using a `.` separated string list when element is a structure, the path is expected to be a camel cased key (a call to strconv.ToCamel is done) when element is an array or a slice, the path is expected as an int when element is a map, the path is expected as a key string in the slice Warning: we currently do not support map key witch are not strings
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.