More Go (Go lang learning series blog - 2)
Learn more about Go! If you've followed and read my first blog of this Learning Go lang series, you can now print any text on your screen using Go lang. Again Congratulations! Today we'll learn more about Go lang and do a lot of cool stuffs! Go Variables : In programming, a variable means a storage of some kind which can store different types of data. var number int The above line declares a variable of type int (Integer) which is named number. Variables can have any names. But there are some rules : Rules for naming a variable A variable name can only have letters (both uppercase and lowercase letters), digits and underscore. The first letter of a variable should be either a letter or an underscore. There is no rule on how long a variable name (identifier) can be. However, you may run into problems in some compilers if the variable name is longer than 31 characters. The "var" keyword confirms that number is the name of that particular variable. The int keyword...