Skip to content

Instantly share code, notes, and snippets.

@rslhdyt
Created September 27, 2017 03:25
Show Gist options
  • Save rslhdyt/bbc707319b01365b9c72d2affcc32745 to your computer and use it in GitHub Desktop.
Save rslhdyt/bbc707319b01365b9c72d2affcc32745 to your computer and use it in GitHub Desktop.
Golang variables
package main
import "fmt"
var taste bool
func main() {
fruit := "banana"
count := 10
fmt.printF("My fav fruit is %v /n", fruit)
fmt.printF("Total fruit %v /n", count)
fmt.printF("Is sweet : %v", taste)
}
// output
// My fav fruit is banana
// Total fruit 10
// Is sweet : false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment