]> Cypherpunks repositories - gostls13.git/commit
exp/types: Replace String method with TypeString function
authorRobert Griesemer <gri@golang.org>
Wed, 1 Aug 2012 02:30:18 +0000 (19:30 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 1 Aug 2012 02:30:18 +0000 (19:30 -0700)
commit152279f203e75f923c510e4cabae6405046ba7f6
tree6bce30ef31ee1abdda21f344e35ed167fac36092
parentdcb6f598116563de1f46babd40c62952621784ae
exp/types: Replace String method with TypeString function

This is more in sync with the rest of the package;
for instance, we have functions (not methods) to
deref or find the underlying type of a Type.

In the process use a single bytes.Buffer to create
the string representation for a type rather than
the (occasional) string concatenation.

R=r
CC=golang-dev
https://golang.org/cl/6458057
src/pkg/exp/types/types.go
src/pkg/exp/types/types_test.go