woorulez / simpled

A simple HTTP file server with minimal UI in Go
0 stars 0 forks source link

using `packr` with template #1

Open woorulez opened 6 years ago

woorulez commented 6 years ago

Go Templates are great! And having a separate template file(ie. box/index.gohtml) with IDE support greatly improves UI coding experience.

But in order to achieve single binary deploy, I used gobuffalo/packr which did the job perfectly.

After releasing v0.1.1 it got to me that go get won't work any more. At least not like it used to.

Is a separate template file for ease of coding worth having at the cost of

  1. introducing a 3rd party tool and package
  2. not able to use go get as a deployment method
woorulez commented 6 years ago

go get seems to work!

some how the binary found the template file in $GOPATH/src/...