Skip to content

Generate code from custom templates #1521

Description

@sagikazarmark

I'd like to integrate models and types with a custom (in-house built) framework.

In order to do that, I'd like to generate custom marshaler/unmarshaler functions.

It would be nice if I could add arbitrary templates to the code generation process.

One thing I tried is overriding templates for a server that I don't use. To complicate things, we still use the Chi integration, so I actually need to support two servers at the same time...which is not allowed at the moment.

As a result, I'm now overriding Chi templates by copying the original ones and extending them with my custom code which is not ideal IMO.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions