Answers for "go program name"

Go
0

go program name

pr, _ := os.Executable()
fmt.Printf(" %s\n", pr)
// alternative
fmt.Printf(" %s\n", os.Args[0])
Posted by: Guest on March-15-2021

Browse Popular Code Answers by Language