We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
good,you help me.thanks
Yeah... the single letter t is really so much more helpful than the single letter v.. so much win. Let's use single letter variables across all sorts of complex programs everywhere, such savings and clarity.
How can I pass anything or anythingMore in a function?
It can't be an array.
var b []byte
what should b.(type) be?
I tried "case []uint8" and "case []byte" and neither worked.
Sorry, Dean again.
It's var b [8]byte,
turns out it's type is [8]uint8
This would print the type of the unhandled types
default:
fmt.Printf("unkown type: %T\n", v)
`v` is confusing, might want to name it `t`