mirror of
https://github.com/golang/go
synced 2024-11-18 15:54:42 -07:00
exp/template/html: do not depend on reflection on internal fields
R=golang-dev, r CC=golang-dev https://golang.org/cl/5286049
This commit is contained in:
parent
95b4f8284f
commit
d2b73730b7
@ -25,6 +25,10 @@ type context struct {
|
||||
err *Error
|
||||
}
|
||||
|
||||
func (c context) String() string {
|
||||
return fmt.Sprintf("{%v %v %v %v %v %v %v}", c.state, c.delim, c.urlPart, c.jsCtx, c.attr, c.element, c.err)
|
||||
}
|
||||
|
||||
// eq returns whether two contexts are equal.
|
||||
func (c context) eq(d context) bool {
|
||||
return c.state == d.state &&
|
||||
|
Loading…
Reference in New Issue
Block a user