osutil - ActiveState ActiveGo 1.8

Package osutil

import "go4.org/osutil"

Overview ▾

Package osutil contains os level functions.

func Executable

func Executable() (string, error)

Executable returns the path name for the executable that starts the current process. The result is the path that was used to start the current process, but there is no guarantee that the path is still pointing to the correct executable.

OpenBSD is currently unsupported.