I think I'm loosing my marbles. Nevermind what I said.

On Wednesday, 2 June 2021 at 16:22:34 UTC+1 Brian Candler wrote:

> > 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/75e2143d-b653-4937-bc3b-c5bb213b6f36n%40googlegroups.com.

Reply via email to