Skip to content

Generate supports type parameters on the receiver interface #18

Description

@crhntr

Given "GET / Load(Session())"
If Session is defined as func (R[T]) Session() T {}
And F is defined as func (R[T]) Load(T) Data {}
When the routes function is generated.
Then the receiver interface type may have generic parameters.

Package authors may publish packages that allow downstream users to use their own types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions