i'm confused about interface{} type,
how to build an interface{} object from Person struct?
if the struct is very big, the conversion cost whether is expensive
type Person struct {
name string
age int
}
func test(any interface{}) {
}
func main() {
p := Person{"test", 11}
// how to build an interface{} object from person struct?
// what is the cost? the field need copy?
test(p)
}