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

Written by
Link to Post

https://www.reddit.com/r/golang/comments/ae03vq/ive_fought_using_the_htmltemplate_package_in_go/

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:
reddit

Leave a Reply