Reputation: 169
I have a beego project in IdeaProject. The structure is like this:
MathApp
├── conf
│ └── app.conf
├── main.go
├── main_test.go
└── views
├── invalid-route.html
└── result.html
However, it shows the error can't find templatefile in the path:views/result.html
. I have set the gopath
as C:/gopath
.
Any suggestion?
Upvotes: 2
Views: 1076
Reputation: 1323263
You can see the code producing this error in template.go
This issue mentions:
Please use the
bee run
, asgo get
install the binary into thegopath/bin
, while the static file still in thegopath/src/myproject
.
Upvotes: 1