Am Mittwoch, 15. Februar 2017 09:40:35 UTC+1 schrieb Felix Sun: > > https://play.golang.org/p/qYA8Ddnnye > > ``` > > package main > > import ( > "fmt" > ) > > type Obj struct { > One *Obj > } > > func main() { > var o = &Obj{} > > var arr = []interface{}{o.One} > > fmt.Println(arr[0]) > fmt.Println("why this is not true?", arr[0] == nil) > } > > > ``` > > > Why `arr[0] == nil` is not true? > > Its an instance of https://golang.org/doc/faq#nil_error.
V. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
