Closed Contextualist closed 1 year ago
Go std lib provides a cross-platform implementation for os.Executable since 1.8. kardianos/osext also uses the std lib implementation for Go >= 1.8. If we don't need Go < 1.8 support, we can simply use os.Executable.
os.Executable
Go std lib provides a cross-platform implementation for
os.Executable
since 1.8. kardianos/osext also uses the std lib implementation for Go >= 1.8. If we don't need Go < 1.8 support, we can simply useos.Executable
.