Skip to content

is support for generic structures? #2920

@371873574

Description

@371873574

gin-swagger
type PageData[T any] struct {
Total int json:"total"
List []T json:"list"
}

type Response[T any] struct {
Code int json:"code"
Msg string json:"msg"
Data T json:"data"
}
Can nested generic types be implemented?

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