title: How to test whether a float is a whole number in Go?
body: <p>I originally tried this, however the % operator isn't defined for float64.</p>
  
  <pre><code>func main(){
      var a float64
      a = 1.23
      if a%1 == 0{
          fmt.Println("yay")
      }else{
          fmt.Println("you fail")
      }
  }
  </code></pre>