Open wtrocki opened 2 years ago
API returns bytes[] which is too low level. We should change it so users can pass their own structures;
From
resultBytes, err := options.GenerateValues(yourSchema, initialValues) if err != nil { return err }
To:
resultBytes, err := options.GenerateValues(yourSchema,&yourObject, initialValues) if err != nil { return err }
Additionally we can see if we can make initialValues derived from the yourObject instance. For that we can use https://github.com/mitchellh/mapstructure
API returns bytes[] which is too low level. We should change it so users can pass their own structures;
From
To:
Additionally we can see if we can make initialValues derived from the yourObject instance. For that we can use https://github.com/mitchellh/mapstructure