i'm still not convinced by the idea behind this. the idea seems
intrinsically too unportable to be elevated to the standard library. i
expect to be outvoted.
https://codereview.appspot.com/6736069/diff/43014/src/pkg/os/executable.go
File src/pkg/os/executable.go (right):
https://codereview.appspot.com/6736069/diff/43014/src/pkg/os/executable.go#newcode7
src/pkg/os/executable.go:7: // Executable returns the absolute pathname
of the current
"the absolute pathname" sounds definitive but is actually not
well-defined.
https://codereview.appspot.com/6736069/diff/43014/src/pkg/os/executable_darwin.go
File src/pkg/os/executable_darwin.go (right):
https://codereview.appspot.com/6736069/diff/43014/src/pkg/os/executable_darwin.go#newcode7
src/pkg/os/executable_darwin.go:7: var progPath string // set by
../runtime/progpath_darwin.c
you've still got some progpaths around, in different casings.
https://codereview.appspot.com/6736069/