20 lines
		
	
	
		
			406 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			20 lines
		
	
	
		
			406 B
		
	
	
	
		
			Go
		
	
	
	
	
	
|   | // 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 | ||
|  | 
 | ||
|  | // there's no warning for package-level vars | ||
|  | var packageLevelVar string | ||
|  | 
 | ||
|  | func main() { | ||
|  | 	// unused variable error | ||
|  | 	// var speed int | ||
|  | 
 | ||
|  | 	// if you use it, the error will be gone | ||
|  | 	// fmt.Println(speed) | ||
|  | } |