Skip to content

Instantly share code, notes, and snippets.

@inancgumus
Last active October 2, 2017 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inancgumus/c34799d6984f21cfc0700871155c93a8 to your computer and use it in GitHub Desktop.
Save inancgumus/c34799d6984f21cfc0700871155c93a8 to your computer and use it in GitHub Desktop.
age of universe correct example
package main
import (
"fmt"
)
func main() {
// still not a good way to define a variable like this. we will see it.
var ageOfUniverse uint64 = 14e9 // 14e9 = 14 and 9 zeros which is 14 billions
fmt.Printf("`ageOfUniverse` is %d.\n", ageOfUniverse)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment