Skip to content

Instantly share code, notes, and snippets.

@Poincare
Created November 9, 2013 16:01
Show Gist options
  • Save Poincare/7386873 to your computer and use it in GitHub Desktop.
Save Poincare/7386873 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main() {
//defines the variable a
a := 5
fmt.Println(a)
//sets a different value to a
a = 10
fmt.Println(a)
//another way to define a variable
var b int
b = 15
fmt.Println(b)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment