OLD | NEW |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // NOTE: If you change this file you must run "./mkbuiltin" | 5 // NOTE: If you change this file you must run "./mkbuiltin" |
6 // to update builtin.c.boot. This is not done automatically | 6 // to update builtin.c.boot. This is not done automatically |
7 // to avoid depending on having a working compiler binary. | 7 // to avoid depending on having a working compiler binary. |
8 | 8 |
9 package PACKAGE | 9 package PACKAGE |
10 | 10 |
11 type Pointer *any | 11 type Pointer uintptr // not really; filled in by compiler |
12 | 12 |
13 func Offsetof(any) int | 13 func Offsetof(any) int |
14 func Sizeof(any) int | 14 func Sizeof(any) int |
15 func Alignof(any) int | 15 func Alignof(any) int |
16 func Typeof(i interface{}) (typ interface{}) | 16 func Typeof(i interface{}) (typ interface{}) |
17 func Reflect(i interface{}) (typ interface{}, addr Pointer) | 17 func Reflect(i interface{}) (typ interface{}, addr Pointer) |
18 func Unreflect(typ interface{}, addr Pointer) (ret interface{}) | 18 func Unreflect(typ interface{}, addr Pointer) (ret interface{}) |
19 func New(typ interface{}) Pointer | 19 func New(typ interface{}) Pointer |
20 func NewArray(typ interface{}, n int) Pointer | 20 func NewArray(typ interface{}, n int) Pointer |
OLD | NEW |