Closed ghost closed 6 years ago
Apparently it's a problem with paths. Examples are trying to load html from their current directory.
In general there are several ways to avoid that:
Program tries to get example.html from my user folder so I have to use absolute path. Thanks!
You are welcome.
I'm on mac When I try to use LoadFile on a build I get "error to load FILENAME file, error=2". Files are on the same path as the executable. It works when running go run example.go but not when running go build ¿Am I using this wrong? ¿Do I need to embbed files to the binary?