package osext

import "github.com/coreos/etcd/third_party/bitbucket.org/kardianos/osext"

Extensions to the standard "os" package.

Index

Functions

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

Source Files

osext.go osext_windows.go

Version
v0.2.0-rc0
Published
Oct 17, 2013
Platform
windows/amd64
Imports
4 packages
Last checked
46 minutes ago

Tools for package owners.