Implement os.Executable

For now this is a stub for everything but linux, which is a slightly
modified copy of the official implementation.

Should address #1778.
This commit is contained in:
Federico G. Schwindt
2021-08-31 11:45:12 +01:00
committed by Ron Evans
parent 97d48e5c02
commit f0936ffccb
2 changed files with 34 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
// +build !linux
package os
import "errors"
func Executable() (string, error) {
return "", errors.New("Executable not implemented")
}