]> Cypherpunks repositories - gostls13.git/commit
exp/template/html: moved error docs out of package docs onto error codes
authorMike Samuel <mikesamuel@gmail.com>
Fri, 16 Sep 2011 02:05:33 +0000 (19:05 -0700)
committerMike Samuel <mikesamuel@gmail.com>
Fri, 16 Sep 2011 02:05:33 +0000 (19:05 -0700)
commit96f9e8837ef884393b994ad8762073a828c5ee15
treedfed650d67885fa4f33a9649b39ca5e02c347441
parent642d272c3cdaea58decce1a9cf6e9668b1b16f67
exp/template/html: moved error docs out of package docs onto error codes

This replaces the errStr & errLine members of context with a single err
*Error, and introduces a number of const error codes, one per
escape-time failure mode, that can be separately documented.

The changes to the error documentation moved from doc.go to error.go
are cosmetic.

R=r, nigeltao
CC=golang-dev
https://golang.org/cl/5026041
src/pkg/exp/template/html/Makefile
src/pkg/exp/template/html/context.go
src/pkg/exp/template/html/doc.go
src/pkg/exp/template/html/error.go [new file with mode: 0644]
src/pkg/exp/template/html/escape.go
src/pkg/exp/template/html/escape_test.go
src/pkg/exp/template/html/transition.go