Hi,

can anyone explain why the following does not work?
i want to have the return value's address not the method itself.

package main

func main() {
//first
addressofstring := &method()
}

func method() string {
return "value"
}

https://play.golang.org/p/UbJ7SK0m9w6

regards
Tamás Király

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to