osext: github.com/kardianos/osext Index | Files

package osext

import "github.com/kardianos/osext"

Extensions to the standard "os" package.


Package Files

osext.go osext_go18.go

func Executable Uses

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 Uses

func ExecutableFolder() (string, error)

Returns same path as Executable, returns just the folder path. Excludes the executable name and any trailing slash.

Package osext imports 2 packages (graph) and is imported by 1504 packages. Updated 2020-06-09. Refresh now. Tools for package owners.