jmattheis / goverter

Generate type-safe Go converters by simply defining an interface
https://goverter.jmattheis.de/
MIT License
496 stars 46 forks source link

Allow external methods in goverter:mapExtend #47

Closed shuqingzai closed 1 year ago

shuqingzai commented 1 year ago

Have you read the project readme?

Describe your question A clear and concise description of what the question is. Include errors and go source files.

I tried importing packages, splitting packages and functions with : or . to no avail

// goverter:converter
type Converter interface {
    // goverter:mapExtend FullName github.com/jmattheis/goverter.ExtendFullName
    // goverter:mapExtend Age github.com/jmattheis/goverter:ExtendFullAge
    Convert(source Input) Output
}
jmattheis commented 1 year ago

Yeah, this is currently unsupported, but it sounds like a useful addition.

jmattheis commented 1 year ago

Fixed in v0.13.0