title: How do you determine if a variable is a slice or array?
body: <p>I have a function that is passed a map, each element of which needs to be handled differently depending on whether it is a primitive or a slice.  The type of the slice is not known ahead of time.  How can I determine which elements are slices (or arrays) and which are not?</p>