diff options
| author | Russ Cox <rsc@golang.org> | 2009-01-15 17:22:17 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-01-15 17:22:17 -0800 |
| commit | 8a7cbadbbe9768ccd7480bb11e35454e39ef2bdd (patch) | |
| tree | 14ada4cb02c131a6c1a3539acdae6c729b3fb307 /src/lib/reflect | |
| parent | 74a60ed08a2581279bef3cccfb9043196c865f80 (diff) | |
| download | go-8a7cbadbbe9768ccd7480bb11e35454e39ef2bdd.tar.xz | |
convert strconv
R=r
DELTA=568 (0 added, 9 deleted, 559 changed)
OCL=22898
CL=22901
Diffstat (limited to 'src/lib/reflect')
| -rw-r--r-- | src/lib/reflect/tostring.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/reflect/tostring.go b/src/lib/reflect/tostring.go index 2c9853af6a..51d8863103 100644 --- a/src/lib/reflect/tostring.go +++ b/src/lib/reflect/tostring.go @@ -84,7 +84,7 @@ func TypeToString(typ Type, expand bool) string { if a.Open() { str = "[]" } else { - str = "[" + strconv.itoa64(int64(a.Len())) + "]" + str = "[" + strconv.Itoa64(int64(a.Len())) + "]" } return str + TypeToString(a.Elem(), false); case MapKind: @@ -123,7 +123,7 @@ func TypeToString(typ Type, expand bool) string { // TODO: want an unsigned one too func integer(v int64) string { - return strconv.itoa64(v); + return strconv.Itoa64(v); } func ValueToString(val Value) string { @@ -154,14 +154,14 @@ func ValueToString(val Value) string { return integer(int64(val.(Uint64Value).Get())); case FloatKind: if strconv.FloatSize == 32 { - return strconv.ftoa32(float32(val.(FloatValue).Get()), 'g', -1); + return strconv.Ftoa32(float32(val.(FloatValue).Get()), 'g', -1); } else { - return strconv.ftoa64(float64(val.(FloatValue).Get()), 'g', -1); + return strconv.Ftoa64(float64(val.(FloatValue).Get()), 'g', -1); } case Float32Kind: - return strconv.ftoa32(val.(Float32Value).Get(), 'g', -1); + return strconv.Ftoa32(val.(Float32Value).Get(), 'g', -1); case Float64Kind: - return strconv.ftoa64(val.(Float64Value).Get(), 'g', -1); + return strconv.Ftoa64(val.(Float64Value).Get(), 'g', -1); case Float80Kind: return "float80"; case StringKind: |
