reflect: update type code type to uintptr
This type was missed after the recent interface updates.
Этот коммит содержится в:
родитель
469193735a
коммит
7bdb606d4f
1 изменённых файлов: 2 добавлений и 2 удалений
|
@ -4,7 +4,7 @@ package reflect
|
||||||
//
|
//
|
||||||
// Not used directly. These types are all replaced with the number the compiler
|
// Not used directly. These types are all replaced with the number the compiler
|
||||||
// uses internally for the type.
|
// uses internally for the type.
|
||||||
type Kind uint16
|
type Kind uintptr
|
||||||
|
|
||||||
// Copied from reflect/type.go
|
// Copied from reflect/type.go
|
||||||
// https://golang.org/src/reflect/type.go?s=8302:8316#L217
|
// https://golang.org/src/reflect/type.go?s=8302:8316#L217
|
||||||
|
@ -39,7 +39,7 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// The typecode as used in an interface{}.
|
// The typecode as used in an interface{}.
|
||||||
type Type uint16
|
type Type uintptr
|
||||||
|
|
||||||
func TypeOf(i interface{}) Type {
|
func TypeOf(i interface{}) Type {
|
||||||
return ValueOf(i).typecode
|
return ValueOf(i).typecode
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче