On Sun, Oct 24, 2021 at 8:11 PM jlfo...@berkeley.edu <jlforr...@berkeley.edu> wrote:
> 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? What is the expected value of len() when applied to a struct? Did you perhaps mean unsafe.Sizeof() instead? https://pkg.go.dev/unsafe@go1.17.2#Sizeof -- 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/CAA40n-UZDO81yGB3Vy49_2VHF%3DjJU4ejxAr10Nre%2BxEp%3D5kQZg%40mail.gmail.com.