Is there a standard way to READ files within the package directory?
Just as an example, I have a file "VERSION" that contains the semantic version of my package, how can I read that file within my go application once the application has been installed?
I've tried all the suggestions on this SO: Golang: How to Get the Directory of the Currently running File?
A third-party package "osext" was the only method that actually produced reliable results.
EDIT: For my specific example, go build -ldflags "-X main.VERSION X.X.X"
works perfectly.