Skip to content

Proposal: Generage Jennifer from Value #58

Open
@josephlewis42

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions