Hi guys, tried to look everywhere and cannot find an answer.

So literally I have this:
```
var result interface{} = &MyStruct{}

...

return result.(*MyStruct) // Error:  invalid operation: result (variable of 
type *interface{}) is not an interface 
```

Is there any way to get the &MyStruct as a result?

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/25da3c8f-6126-439a-904a-5fec59cb09f4n%40googlegroups.com.

Reply via email to