title: Checking types of slices in golang
body: <p>I use the reflect package to check the type of my variables. For example if I want to check if var is an integer I do:</p>
  
  <pre><code>reflect.TypeOf(var).Kind == reflect.Int
  </code></pre>
  
  <p>How can I check if my variable is an int or float slice? </p>
  
  <p>I can only see Slice as one of the types returned by Kind() but this slice could be of any type</p>