package osext
import "github.com/coreos/etcd/third_party/bitbucket.org/kardianos/osext"
Extensions to the standard "os" package.
Index ¶
- func Executable() (string, error)
- func ExecutableFolder() (string, error)
- func GetExePath() (exePath string, err error)
Functions ¶
func Executable ¶
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 ¶
Returns same path as Executable, returns just the folder path. Excludes the executable name.
func GetExePath ¶
Depricated. Same as Executable().
Source Files ¶
- Version
- v0.4.0
- Published
- May 21, 2014
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 10 minutes ago –
Tools for package owners.