Top "Go-interface" questions

Type converting slices of interfaces

I'm curious why Go does't implicitly convert []T to []interface{} when it will implicitly convert T to interface{}. Is there …

go go-reflect go-interface
Convert Json.Number into int/int64/float64 in golang

I have a variable data, which is an interface. When I print its type I get it as json.Number. …

go go-interface
Empty Interfaces in Golang

Edit: This is not the right way to use interfaces in Go. The purpose of this question is for me …

go go-interface
In Go, how do I check a value is of (any) pointer type?

I have a slice of interface{} and I need to check whether this slice contains pointer field values. Clarification example: …

pointers reflection go go-interface
Interfaces and pointer receivers

I am newbie gopher and trying to get my head around the pointer receivers and interfaces. type Foo interface { foo() } …

go go-interface