What's the best way to get the path of the executable during runtime?
Posted
by marketer
on Stack Overflow
See other posts from Stack Overflow
or by marketer
Published on 2010-05-11T21:31:11Z
Indexed on
2010/05/11
21:34 UTC
Read the original article
Hit count: 177
go
If my go program can be executed in different ways (cron, monit, etc..), what's the most reliable way to get the directory that contains the executable, during runtime?
© Stack Overflow or respective owner