Skip to content

Support for go genericsΒ #327

@mredolatti

Description

@mredolatti

Hi! are there any plans to support generic structs?
Something like this:

type Person struct {
	Name string
}

type Response[T any] struct {
	Status int
	Payload T
}

type PersonResponse Response[Person]

will try to generate code as if Response was indeed a struct and instead of a template.

image

Thanks!

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