I can't believe I've overlooked this "feature" in the documentation. I came across this by accident, no doubt I changed my mind without completing the operation and forgot the equals sign.
package main import ( "fmt" ) type label = struct{ i int } func main() { v := label{i: 10} fmt.Println(v.i) } or https://play.golang.org/p/NmbRkgbvt15 Lucio. -- 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.