You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What would you feel about adding a utility that generates code using reflect.Value? The goal is to create something similar to the %#vfmt directive.
My immediate goal is building a tool that turns YAML files into pre-populated go structs, but I could see it being used other places where you want to create a reproducible instance of something. For example, a fuzzer could create a single file with a minimal working example of a struct that fails or a rules engine could compile together a bunch of rules generated from user-defined files.
Cheers!
- Joseph
The text was updated successfully, but these errors were encountered:
Sounds good! I’m going to be trekking across Nepal for five months this summer, so won’t have my laptop or much internet ... but it sounds like this could be an external utility instead of a Jennifer feature?
Sure, I'm happy to build it then give you a PR to something like jenniferutils once you're back if you're interested. I understand not wanting to modify the core, but I bet a project you owned would have more interest than something I build. :-)
Hi Dave,
What would you feel about adding a utility that generates code using
reflect.Value
? The goal is to create something similar to the%#v
fmt
directive.My immediate goal is building a tool that turns YAML files into pre-populated go structs, but I could see it being used other places where you want to create a reproducible instance of something. For example, a fuzzer could create a single file with a minimal working example of a struct that fails or a rules engine could compile together a bunch of rules generated from user-defined files.
Cheers!
- Joseph
The text was updated successfully, but these errors were encountered: