rsc.io/go@v0.0.0-20150416155037-e040fd465409/src/cmd/internal/obj/typekind.go (about)

     1  // Copyright 2009 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package obj
     6  
     7  // Copyright 2012 The Go Authors. All rights reserved.
     8  // Use of this source code is governed by a BSD-style
     9  // license that can be found in the LICENSE file.
    10  
    11  // Must match runtime and reflect.
    12  // Included by cmd/gc.
    13  
    14  const (
    15  	KindBool = 1 + iota
    16  	KindInt
    17  	KindInt8
    18  	KindInt16
    19  	KindInt32
    20  	KindInt64
    21  	KindUint
    22  	KindUint8
    23  	KindUint16
    24  	KindUint32
    25  	KindUint64
    26  	KindUintptr
    27  	KindFloat32
    28  	KindFloat64
    29  	KindComplex64
    30  	KindComplex128
    31  	KindArray
    32  	KindChan
    33  	KindFunc
    34  	KindInterface
    35  	KindMap
    36  	KindPtr
    37  	KindSlice
    38  	KindString
    39  	KindStruct
    40  	KindUnsafePointer
    41  	KindDirectIface = 1 << 5
    42  	KindGCProg      = 1 << 6
    43  	KindNoPointers  = 1 << 7
    44  	KindMask        = (1 << 5) - 1
    45  )