Skip to content

os: provide full path to current executable #4057

Closed
@gopherbot

Description

@gopherbot

by lost.goblin:

It would be very useful to have a way to find the full path to the current executable.

Not sure if this functionality should go in the os or runtime packages, and what would
be a good name. os.Getpath() or os.Getexecpath() perhaps?

For implementation details for most common platforms here is a good reference:
http://stackoverflow.com/a/1024937/192583

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions