| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | // 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 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-18 05:03:43 +08:00
										 |  |  | 	// Unicode letters are allowed | 
					
						
							| 
									
										
										
										
											2018-10-13 23:30:21 +03:00
										 |  |  | 	var 速度 int | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	// keep the compiler happy | 
					
						
							|  |  |  | 	_, _, _, _ = speed, SpeeD, _speed, 速度 | 
					
						
							|  |  |  | } |