title: Is there a built in min function for a slice of int arguments or a variable number of int arguments in golang?
body: <p>Precursor: I'm just starting to get my feet wet with golang. </p>
  
  <p>This may prove to a be a silly question as it's quite easy to perform these calculations but I'm going to ask it anyway as I didn't find an answer when Googling. </p>
  
  <p>Is there a built in function that returns the minimum of a slice of int arguments:</p>
  
  <pre><code>func MinIntSlice(v []int) (m int) {
      if len(v) &gt; 0 {
          m = v[0]
      }
      for i := 1; i &lt; len(v); i++ {
          if v[i] &lt; m {
              m = v[i]
          }
      }
      return
  }
  </code></pre>
  
  <p>OR the minimum of a variable number of int arguments:</p>
  
  <pre><code>func MinIntVarible(v1 int, vn ...int) (m int) {
      m = v1
      for i := 0; i &lt; len(vn); i++ {
          if vn[i] &lt; m {
              m = vn[i]
          }
      }
      return
  }
  </code></pre>
  
  <p>If not, is the best "convention" simply to create a package that contains helpers like this?</p>