3 ms·
How did you embed your templates into the binary?
by soccerdave 13y ago
How did you embed your templates into the binary?
- jackielii 13y agovia string literals http://golang.org/ref/spec#String_literals http://golang.org/ref/spec#String_literals
- genwin 13y agoThe 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.