Closed s-takehana closed 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.
How to avoid go vet copylocks warnings?
go vet copylocks
e.g.
// goverter:converter type Converter interface { Convert(source []Input) []Output } // generated gRPC code type Input struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } type Output struct { Name string }
goverter -ignoreUnexportedFields ./example/simple
generated.go
call of ***** copies lock value: ***** contains google.golang.org/protobuf/internal/impl.MessageState contains sync.Mutex
I want to use pointer.
same issue here https://github.com/jmattheis/goverter/issues/37#issuecomment-1341904549
Thanks!
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.
How to avoid
go vet copylocks
warnings?e.g.
generated.go
I want to use pointer.