golang
Method Has Pointer Receiver Error
StackOverflow Reference If an interface variable is assigned with a non-pointer value of a concrete type. There will be an error like: ./main.go:31:4: cannot use x (type X) as type Y in assignment: Foo does not implement Y (Z method has pointer receiver) The example code is