I’ve fought using the html/template package in Go for nearly 3 years…

Written by
Link to Post


Today, for the first time I actually decided to give html/template a simply try to do something I’m very fickle about. Having a header/footer in a single file and reading pages from separate files.

My simple test: https://gist.github.com/protosam/ad7e4ddcf8450e1ba98c6bf09d008b8e

After this I feel like some old geezer, not actually trying this out before now. I’m very pleasantly surprised. 🙂

submitted by /u/igknighted
[link] [comments]

Article Tags:
· ·
Article Categories:

Leave a Reply