package main
import (
"fmt"
)
type S struct {
a, b, c string
}
func main() {
x := interface{}(&S{"a", "b", "c"})
y := interface{}(&S{"a", "b", "c"})
//x := &S{"a", "b", "c"}
//y := &S{"a", "b", "c"}
fmt.Println(x == y)
}
有疑问加站长微信联系(非本文作者)