There are two ways, one is to use reflection, the other would be to use unsafe 
to convert the slice value into another structure then extract the length 
field. 

Assuming that you could write a Len function as you specified, what would you 
do next? What problem are you trying to solve?

-- 
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