2008-12-08 20:46:39 -07:00
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2010-01-22 17:58:33 -07:00
|
|
|
// NOTE: If you change this file you must run "./mkbuiltin"
|
|
|
|
// to update builtin.c.boot. This is not done automatically
|
|
|
|
// to avoid depending on having a working compiler binary.
|
|
|
|
|
2008-12-08 20:46:39 -07:00
|
|
|
package PACKAGE
|
|
|
|
|
2009-10-06 12:42:55 -06:00
|
|
|
type Pointer *any
|
2009-10-06 15:55:39 -06:00
|
|
|
|
2009-10-06 12:42:55 -06:00
|
|
|
func Offsetof(any) int
|
|
|
|
func Sizeof(any) int
|
|
|
|
func Alignof(any) int
|
|
|
|
func Typeof(i interface{}) (typ interface{})
|
|
|
|
func Reflect(i interface{}) (typ interface{}, addr Pointer)
|
|
|
|
func Unreflect(typ interface{}, addr Pointer) (ret interface{})
|
2009-12-07 16:51:58 -07:00
|
|
|
func New(typ interface{}) Pointer
|
|
|
|
func NewArray(typ interface{}, n int) Pointer
|