I'm working on a golang project that has to read files from a sub directory...
When debugging my program it (not sure what it
is yet) is unable to locate the files when provided a relative path. Im using io.util.ReadFile(RELATIVE_PATH)
for this operation.
This problem doesn't occur when running the program from the terminal.
This has lead me to believe intellij does something behind the scenes debugging/running where it messes with the directory structure (moves it into a temporary location?). If this is the case, how would I go about configuring intellij so that the sub directories are included in the magic or removing the magic so the program is debugged from the directory it lives in.
I'm new to golang/intellij so any help would be appreciated.