I understand that if T is a structure, then this means creating an empty structure (reasonable empty values) ::
t := new(T)
However, given the following snippet:
type Burper interface {burp() int} b := new(Burper)
What is being created and what is the use of the new interface?
source share