1
0
mirror of https://github.com/golang/go synced 2024-11-17 23:14:49 -07:00
go/src/html
Iskander Sharipov 48462bb3c0 html/template: use named consts instead of their values
Use defined named constants instead of 0 literal in comparisons.

Found using https://go-critic.github.io/overview.html#namedConst-ref

Change-Id: Ic075cece248f6e51db0b3d9d9eaba7d6409c9eef
Reviewed-on: https://go-review.googlesource.com/123376
Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-22 22:48:10 +00:00
..
template html/template: use named consts instead of their values 2018-08-22 22:48:10 +00:00
entity_test.go html: lazily populate Unescape tables 2018-07-31 22:10:54 +00:00
entity.go html: lazily populate Unescape tables 2018-07-31 22:10:54 +00:00
escape_test.go
escape.go html: lazily populate Unescape tables 2018-07-31 22:10:54 +00:00
example_test.go