29 lines
		
	
	
		
			441 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			441 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
 | |
| 
 | |
| import "fmt"
 | |
| 
 | |
| func main() {
 | |
| 	// this is equal to:
 | |
| 	//
 | |
| 	//   var (
 | |
| 	//     speed int
 | |
| 	//     velocity int
 | |
| 	//   )
 | |
| 	//
 | |
| 	// or:
 | |
| 	//
 | |
| 	//   var speed int
 | |
| 	//   var velocity int
 | |
| 	//
 | |
| 	var speed, velocity int
 | |
| 
 | |
| 	fmt.Println(speed, velocity)
 | |
| }
 |