30 lines
		
	
	
		
			554 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			554 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// Copyright © 2018 Inanc Gumus
 | 
						|
// Learn Go Programming Course
 | 
						|
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
 | 
						|
//
 | 
						|
// For more tutorials  : https://learngoprogramming.com
 | 
						|
// In-person training  : https://www.linkedin.com/in/inancgumus/
 | 
						|
// Follow me on twitter: https://twitter.com/inancgumus
 | 
						|
 | 
						|
package main
 | 
						|
 | 
						|
import (
 | 
						|
	"fmt"
 | 
						|
	"os"
 | 
						|
)
 | 
						|
 | 
						|
// STEPS:
 | 
						|
//
 | 
						|
// Compile it by typing:
 | 
						|
//   go build -o myprogram
 | 
						|
//
 | 
						|
// Then run it by typing:
 | 
						|
//   ./myprogram
 | 
						|
//
 | 
						|
// If you're on Windows, then type:
 | 
						|
//   myprogram
 | 
						|
 | 
						|
func main() {
 | 
						|
	fmt.Println(os.Args[0])
 | 
						|
}
 |