Back to

Package osext

Latest Go to latest

The latest major version is .

Published: Dec 23, 2013 | Licenses: Apache-2.0 , Zlib | Module:


Extensions to the standard "os" package.


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().

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier