> If you try using switch value.(type) instead of using reflect, bool will 
be reported as int, fyi, so using reflect here.

Could you explain that a bit further please?  A type switch seems to work 
OK for me, with no reflect.
https://play.golang.org/p/TBH5zKYnG4G

-- 
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/1c8fc67f-55ac-42e9-be8c-057695eea29fn%40googlegroups.com.

Reply via email to