Created
September 27, 2017 03:25
-
-
Save rslhdyt/bbc707319b01365b9c72d2affcc32745 to your computer and use it in GitHub Desktop.
Golang variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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