Hi
I think that this is the case that "proper way" means "the one that fits your needs".
Some solutions you may adopt:
a) (cd /path/to/my/server/directory ; go run main.go) &
b) use absolute pathnames: os.Open("/path/to/my/server/directory/images/my.png")
c) Load configuration from some file/db
d) command line flags, like:
.
.
.
import "flag"
.
.
.
var pathToMyServerDirectory string
.
.
.
flag.StringVar(&pathToMyServerDirectory,"path",".","Server root directory")
.
.
.