1
0
mirror of https://github.com/golang/go synced 2024-11-20 00:04:43 -07:00
go/src
Daniel Martí 6e9960ea63 cmd/compile: use stringer on types.EType
Another one that is possible thanks to the new -trimprefix stringer
flag.

The only subtle difference is that, in the previous version, some values
such as TUNSAFEPTR were stringified as "TUNSAFEPTR" instead of
"UNSAFEPTR". The new String method is always consistent in removing the
"T" prefix.

Passes toolstash -cmp on std cmd.

Change-Id: I68407f391795403dfcbbfa68c813018c0235bbb5
Reviewed-on: https://go-review.googlesource.com/77250
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Marvin Stenger <marvin.stenger94@gmail.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
2017-11-13 00:35:25 +00:00
..
archive archive/zip: use Time.UTC instead of Time.In(time.UTC) 2017-11-10 00:27:33 +00:00
bufio
builtin
bytes
cmd cmd/compile: use stringer on types.EType 2017-11-13 00:35:25 +00:00
compress
container
context
crypto crypto/x509: handle name constraints with cryptobyte 2017-11-12 01:19:40 +00:00
database/sql
debug
encoding
errors
expvar
flag
fmt
go crypto/x509: handle name constraints with cryptobyte 2017-11-12 01:19:40 +00:00
hash hash: add marshaling, unmarshaling example 2017-11-04 03:47:34 +00:00
html
image
index/suffixarray
internal net: implement ReadMsg/WriteMsg on windows 2017-11-10 05:55:10 +00:00
io
log
math
mime
net net/http/httputil: make ReverseProxy close response body if ModifyResponse returns an error 2017-11-11 20:12:59 +00:00
os
path
plugin
reflect
regexp
runtime cmd/go: implement per-package asmflags, gcflags, ldflags, gccgoflags 2017-11-09 15:04:04 +00:00
sort
strconv unicode: update to Unicode 10.0.0 2017-10-24 12:42:35 +00:00
strings
sync
syscall
testing
text text/template: remove unnecessary lexer field 2017-11-10 04:13:30 +00:00
time
unicode
unsafe
vendor/golang_org/x
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc