Created
June 26, 2018 20:33
-
-
Save hi-manshu/625ddc0ebba763dca1ff41c6e408c107 to your computer and use it in GitHub Desktop.
This file contains 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
var variableNameGlobal bool // it global variable | |
var isOn, isOff = true, false // ignores the type of variables | |
func main() { | |
var variableName bool // local variable | |
variableName1 := false // without var and datatype | |
variableName2 = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment