I agree! The purpose of this was teaching, and not necessarily following all of the best practices! I made raw files which contain the go HTML templates, as well as the JS and CSS files available within the repository in case anyone wanted to reference these instead of including the raw code within main.go!!
I prefer treating a template as a constant for small projects. Trade off is it doesn't scale but vastly reduces configuration overhead.
Yeah..the Haskell one recently at least had the HTML in a Haskell EDSL instead of raw strings.