Closed ryan961 closed 9 months ago
Configure the full output package instead of only the package name (:data
). https://goverter.jmattheis.de/#/config/output?id=outputpackage-package
Thank you for reply. It is OK after just trying :)
package data
import (
"time"
"example/internal/biz"
)
type (
// goverter:converter
// goverter:output:file ./converter_gen.go
// goverter:output:package example/internal/data:data
// goverter:ignoreMissing
// goverter:extend TimeToTime
Converter interface {
ConvertUser(*User) *biz.UserInfo
}
)
...
Awesome, I've added an FAQ to the website including this question: https://goverter.jmattheis.de/faq
Have you read the project readme?
Describe your question Hello, may I ask how should goverter (v1.1.0) be configured under the same directory level? I'm still getting the
import cycle not allowed
error after configuring like below:converter.go
converter_gen.go
data "example/internal/data"is redundant.I looked up the issues, but they all seem out of date.