Created
June 3, 2020 06:04
-
-
Save RuNpiXelruN/bcfa8d25f35cda57485d2e24678afd1e to your computer and use it in GitHub Desktop.
Get basepath of app/workspace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_, b, _, _ := runtime.Caller(0) | |
basepath := filepath.Dir(b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment