osext: bitbucket.org/kardianos/osext Index | Files

package osext

import "bitbucket.org/kardianos/osext"

Extensions to the standard "os" package.


Package Files

osext.go osext_procfs.go

func Executable

func Executable() (string, error)

Executable returns an absolute path that can be used to re-invoke the current program. It may not be valid after the current program exits.

func ExecutableFolder

func ExecutableFolder() (string, error)

Returns same path as Executable, returns just the folder path. Excludes the executable name.

func GetExePath

func GetExePath() (exePath string, err error)

Depricated. Same as Executable().

Package osext imports 5 packages (graph) and is imported by 93 packages. Updated 2014-11-01. Refresh now. Tools for package owners.