Hi! Dealing with go's funcs I discovered that can't force the compiler to control whether I pass a value or pointer-to-value argument when using 'generic' interface{} type.
func f(o interface{}) {
...
}
The most obvious solution is to use the following modification:
func f(o *interface{}) {
...
}
Although this is successfully compiled I didn't find this step right. So, is there any means to state that I want to pass any pointer?