Merge pull request #19 from DavidGamba/godoc-readme

Add GoDoc to README
tree: 55219b21cab3f12477dfb71d2e247995fa306522
  1. LICENSE
  2. osext.go
  3. osext_plan9.go
  4. osext_procfs.go
  5. osext_sysctl.go
  6. osext_test.go
  7. osext_windows.go
  8. README.md
README.md

Extensions to the “os” package.

GoDoc

Find the current Executable and ExecutableFolder.

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.