Initial commit
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
// For more tutorials: https://blog.learngoprogramming.com
|
||||
//
|
||||
// Copyright © 2018 Inanc Gumus
|
||||
// Learn Go Programming Course
|
||||
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
||||
//
|
||||
|
||||
package main
|
||||
|
||||
// VARIABLE NAMING RULES
|
||||
|
||||
func main() {
|
||||
// CORRECT DECLARATIONS
|
||||
var speed int
|
||||
var SpeeD int
|
||||
|
||||
// underscore is allowed but not recommended
|
||||
var _speed int
|
||||
|
||||
// unicode letters are allowed
|
||||
var 速度 int
|
||||
|
||||
// keep the compiler happy
|
||||
_, _, _, _ = speed, SpeeD, _speed, 速度
|
||||
}
|
Reference in New Issue
Block a user