Using Must, Funcs, and ParseFiles with multiple files in Go templates

I wanted to add a few custom template functions in my first Go web application, which I&rsquo;m currently building. Something like this // Setup template funcMap := template . FuncMap { 'trim' : strings . Trim , } customTemplate := template . Must ( template . New ( 'test' ). Funcs ( funcMap ). ParseFiles ( 'views/base.html' , 'views/submit.html' )) . . // Call template d := ... . customTemplate .…