Skip to content

Instantly share code, notes, and snippets.

@100daysofdevops
Created October 2, 2019 05:36
Show Gist options
  • Select an option

  • Save 100daysofdevops/c686f47b720303610cb1a84dbdecad01 to your computer and use it in GitHub Desktop.

Select an option

Save 100daysofdevops/c686f47b720303610cb1a84dbdecad01 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main() {
var i float32 = 5.3
fmt.Printf("%v %T\n", i, i)
var j int
j = int(i)
fmt.Printf("%v %T\n", j, j)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment