osext

Extensions to the standard "os" package. Executable and ExecutableFolder.

Github stars Tracking Chart

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.

Main metrics

Overview
Name With Ownerkardianos/osext
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:BSD 3-Clause "New" or "Revised" License
所有者活动
Created At2015-02-22 22:40:07
Pushed At2019-02-22 17:33:27
Last Commit At2019-02-22 17:33:26
Release Count0
用户参与
Stargazers Count441
Watchers Count17
Fork Count65
Commits Count37
Has Issues Enabled
Issues Count25
Issue Open Count1
Pull Requests Count6
Pull Requests Open Count1
Pull Requests Close Count3
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private