Skip to content

text/template: improve documentation for creating templates #4338

@gopherbot

Description

@gopherbot

by Shifter1:

http://play.golang.org/p/YfvMjcI7b5


Errors from that code are unhelpful, and the documentation for 
* http://golang.org/pkg/text/template/#New
* http://golang.org/pkg/text/template/#Template.ParseFiles


No mention is made in the docs that when using .New() and then .ParseFiles(), the
orginal temaplte's name needs to tbe the same as the base name of the first file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeSuggestedIssues that may be good for new contributors looking for work to do.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions