commit | 585a5fc243e290ad9055ae1439a5e505d1ce7368 | [log] [tgz] |
---|---|---|
author | tfarina <tfarina@chromium.org> | Tue Oct 14 09:39:02 2014 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Tue Oct 14 09:39:02 2014 -0700 |
tree | 775e63972de0a10ddf22cf9507dcd6c66de8eb73 | |
parent | bdc49ae0d422b8fe1957af570c4f4e63272f5285 [diff] |
webtry: Simplify template construction. text/template and html/template both have a helper function called "Must" that according to the docs in http://golang.org/pkg/text/template/#Must and http://golang.org/pkg/html/template/#Must, wraps a call to a function returning (*Template, error) and panics if the error is non-nil. So we don't need to that ourselves. Which is a good thing and makes code cleaner. BUG=None TEST=None R=jcgregorio@google.com Review URL: https://codereview.chromium.org/642243004