Pergi Nama Program

pr, _ := os.Executable()
fmt.Printf(" %s\n", pr)
// alternative
fmt.Printf(" %s\n", os.Args[0])
Mackerel