title: Convert a float64 to an int in Go
body: <p>How does one convert a float64 to an int in Go? I know the <code>strconv</code> package can be used to convert anything to or from a string, but not between data types where one isn't a string. I know I can use <code>fmt.Sprintf</code> to convert anything to a string, and then <code>strconv</code> it to the data type I need, but this extra conversion seems a bit clumsy - is there a better way to do this?</p>