8000 Add Sprig templates for code generation · Issue #1536 · oapi-codegen/oapi-codegen · GitHub
[go: up one dir, main page]

Skip to content

Add Sprig templates for code generation #1536

@deefdragon

Description

@deefdragon

I'm planning on taking on #1521 to make it a bit easier to generate your own templates.

To make writing templates easier in general, I'd also like to import Sprig and add it to the functions used for the templates. I've been using them in my templates for some time via a fork. Many of the added functions are VERY useful for navigating the OAPI structs and the extensions Ive added.

Wanted to discuss before I PR if there are any questions or potential issues.

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

      0