You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't believe this is a bug. The private field I expect should not be copied, and an error should be returned. What are your expectations regarding this?
I don't believe this is a bug. The private field I expect should not be copied, and an error should be returned. What are your expectations regarding this?
如果按照上述说法,那我这种方式去进行copy的时候会成功
`func TestName(t *testing.T) {
t.Run("validate error flag name", func(t *testing.T) {
type SrcTags struct {
Field1 string
field2 string
}
Reproducible Example
func TestName(t *testing.T) {
t.Run("validate error flag name", func(t *testing.T) {
type SrcTags struct {
field1 string
Field2 string
}
}
Description
src structure中存在私有变量,dst structure中使用copier标签进行拷贝会导致src structure中其他变量拷贝失败
The text was updated successfully, but these errors were encountered: