I noticed that the len() function doesn't take a struct as an argument (see below). This is a big surprise. Can someone shed some light on why this restriction exists?
Cordially, Jon Forrest ---------- package main import "fmt" var s struct { i1 int i2 int } func main() { fmt.Printf("len(s) = %d\n", len(s)) // -- invalid argument s (type struct { i1 int; i2 int }) for len } -- 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/281160cc-0d99-4bd9-8f3d-703cda288051n%40googlegroups.com.