github.com/staktrace/go-update@v0.0.0-20210525161054-fc019945f9a2/internal/osext/README.md (about)

     1  ### Extensions to the "os" package.
     2  
     3  ## Find the current Executable and ExecutableFolder.
     4  
     5  There is sometimes utility in finding the current executable file
     6  that is running. This can be used for upgrading the current executable
     7  or finding resources located relative to the executable file. Both
     8  working directory and the os.Args[0] value are arbitrary and cannot
     9  be relied on; os.Args[0] can be "faked".
    10  
    11  Multi-platform and supports:
    12   * Linux
    13   * OS X
    14   * Windows
    15   * Plan 9
    16   * BSDs.