HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by soccerdave | Hacker News Reader
Parent
Full thread
soccerdave
·
How did you embed your templates into the binary?
View on HN
genwin
·
The templates are on disk and their contents passed to the template function on initialization. So yes, the app is not a single file. I forgot about these files because they rarely change, hence are rarely deployed.
jackielii
·
via string literals
http://golang.org/ref/spec#String_literals
Reply on news.ycombinator.com