Actually, html/template is good for templating, with data formatting, etc.
For a static static file, consider  http.ServeFile 
<https://golang.org/pkg/net/http/#ServeFile>

On Tuesday, May 2, 2017 at 10:03:19 AM UTC+2, Lutz Horn wrote:
>
> Hi Val, 
>
> > I'll go with 2 remarks and leave other concerns to other reviewers : 
> > - using ioutil.ReadFile to serve some static html isn't the most 
> > idiomatic. 
> > Have a look at html/template <https://golang.org/pkg/html/template/>. 
>
> I had a vague feeling that this should be easier :) Thanks, I'll take a 
> look at html/template. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to