Package options provides a way to pass unstructured sets of options to a component expecting a strongly-typed configuration structure.
GenerateFromModel takes the generic options, and tries to build a new instance of the model's type by matching keys from the generic options to fields in the model.
The return value is of the same type than the model (including a potential pointer qualifier).
CannotSetFieldError is the error returned when the generic parameters hold a value for a field that cannot be set in the destination structure.
Generic is a basic type to store arbitrary settings.
NewGeneric returns a new Generic instance.
NoSuchFieldError is the error returned when the generic parameters hold a value for a field absent from the destination structure.
TypeMismatchError is the error returned when the type of the generic value for a field mismatches the type of the destination structure.