There is no standard method to include static resources for a compiled program; however one common convention is to store configuration in environment variables.
For example, when running your app, put the expected environment variable in the environment:
$> TEMPLATE_VIEWS=/var/local/app/views myapp
And in your code you would find the folder:
func loginHandler(w http.ResponseWriter, r *http.Request) {
t, err := template.ParseFiles(filepath.Join(os.Getenv("TEMPLATE_VIEWS"), "login.html"))
if err != nil {
fmt.Fprintf(w, "503 - Error")
fmt.Println(err)
} else {
t.Execute(w, nil)
}
}