mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-17 16:12:42 +08:00
13 lines
180 B
Go
13 lines
180 B
Go
package structs
|
|
|
|
import "testing"
|
|
|
|
func TestCopy(t *testing.T) {
|
|
v1 := struct{ Abc string }{Abc: "abc"}
|
|
v2 := struct{ Abc string }{}
|
|
|
|
Copy(v1, &v2, IgnoreEmpty())
|
|
|
|
t.Log(v2)
|
|
}
|