Skip to content

Generator flag to default to tuples instead of maps #186

Description

@shabbyrobe

We are using tuples for everything in our application for performance and compactness. I'd love to be able to replace the 200 or so //msgp:tuple directives with a single flag to the generator //go:generate msgp -tuple.

I suppose this means there'd need to be a new directive //msgp:map, orthogonal to //msgp:tuple in the default mode.

Happy to have a stab at this if you think it'd be worth including. It'd certainly make my life a lot easier!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions