What I am looking for here is the equivalent of C's argv[0].

The flag package only gives access to command line arguments, but not the executable name.

While one can get the process with Getpid(), I haven't found something that will give me access to the whole command line. The syscall command GetCommandLine() seems only to be available on Windows.

go
Edit
Report