hexdigest / gowrap

GoWrap is a command line tool for generating decorators for Go interfaces
MIT License
1.06k stars 82 forks source link

Add support for generic types expressed by selector expressions #84

Closed breml closed 6 months ago

breml commented 7 months ago

Add support for generic interfaces with selector expressions for the type, e.g.:

package foo

import (
    "bar"
)

type Fooer[T bar.Bar] interface {
    Foo() T
}

or

package foo

import (
    "bar"
)

type Fooer[T Bar] interface {
    Foo() T
}

where the destination file could be in the same or in a different package.

breml commented 6 months ago

Hi @hexdigest I hope you don't mind me following up on this pull request. I contributed to gowrap in the past and I remember it being a swift experience. Based on the open issues and PR in this repo (as well as your recent Github contribution history) I wonder about the current state of maintenance of gowrap. Can you share you thoughts on this?

hexdigest commented 6 months ago

Hi @breml,

Excuse me for the delay, and than you for the contribution! This fix should be in v1.3.5

breml commented 6 months ago

@hexdigest thank you for merging the PR, I am happy to help with this contribution. No worry about the delay. Maintaining some open source myself as well, I do understand the tension this brings. Thank you for maintaining gowrap ❤️ .