cloudflared-mirror/vendor/github.com/equinox-io/equinox/internal/osext
Areg Harutyunyan 0468866626 TUN-813: Clean up cloudflared dependencies 2018-07-24 18:07:02 -05:00
..
LICENSE TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00
README.md TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00
osext.go TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00
osext_plan9.go TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00
osext_procfs.go TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00
osext_sysctl.go TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00
osext_windows.go TUN-528: Move cloudflared into a separate repo 2018-07-19 15:02:24 -05:00

README.md

Extensions to the "os" package.

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.