refactoring to make more go-ish
update example main for changes
more refactoring, have html controller hijack the request so we can use a custom writer