mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
support ... as a special type in the reflection library.
R=rsc DELTA=17 (17 added, 0 deleted, 0 changed) OCL=18386 CL=18393
This commit is contained in:
parent
c4969a3b93
commit
730fd707cb
3 changed files with 17 additions and 0 deletions
|
|
@ -67,6 +67,8 @@ func TypeToString(typ Type, expand bool) string {
|
|||
switch(typ.Kind()) {
|
||||
case MissingKind:
|
||||
return "$missing$";
|
||||
case DotDotDotKind:
|
||||
return "...";
|
||||
case IntKind, Int8Kind, Int16Kind, Int32Kind, Int64Kind,
|
||||
UintKind, Uint8Kind, Uint16Kind, Uint32Kind, Uint64Kind,
|
||||
FloatKind, Float32Kind, Float64Kind, Float80Kind:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue