If you open http://play.golang.org/p/nrjINWcjn9 and click "Run" - you'll see
prog.go:17: invalid operation: v += 1 (mismatched types interface {} and int)
[process exited with non-zero status]
Is there a way to return variable of certain type from Get without creating
another method called GetInt? I guess no but just clarifying to be sure.
What I want is to have a global stash in HTTP daemon where I can keep this
or that stuff.
Cheers
Eugene
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.