route/vendor/github.com/kardianos/osext
Cadey Ratio 50c1deaa7d
change from vendor to dep
2017-10-06 08:29:20 -07:00
..
LICENSE change from vendor to dep 2017-10-06 08:29:20 -07:00
README.md change from vendor to dep 2017-10-06 08:29:20 -07:00
osext.go add gops support 2017-04-06 15:54:33 -07:00
osext_go18.go change from vendor to dep 2017-10-06 08:29:20 -07:00
osext_plan9.go change from vendor to dep 2017-10-06 08:29:20 -07:00
osext_procfs.go change from vendor to dep 2017-10-06 08:29:20 -07:00
osext_sysctl.go change from vendor to dep 2017-10-06 08:29:20 -07:00
osext_test.go change from vendor to dep 2017-10-06 08:29:20 -07:00
osext_windows.go change from vendor to dep 2017-10-06 08:29:20 -07:00

README.md

Extensions to the "os" package.

GoDoc

Find the current Executable and ExecutableFolder.

As of go1.8 the Executable function may be found in os. The Executable function in the std lib os package is used if available.

There is sometimes utility in finding the current executable file that is running. This can be used for upgrading the current executable or finding resources located relative to the executable file. Both working directory and the os.Args[0] value are arbitrary and cannot be relied on; os.Args[0] can be "faked".

Multi-platform and supports:

  • Linux
  • OS X
  • Windows
  • Plan 9
  • BSDs.