github.com/peggyl/go@v0.0.0-20151008231540-ae315999c2d5/src/runtime/typekind1.go (about)

     1  // Copyright 2012 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 runtime
     6  
     7  const (
     8  	_KindBool = 1 + iota
     9  	_KindInt
    10  	_KindInt8
    11  	_KindInt16
    12  	_KindInt32
    13  	_KindInt64
    14  	_KindUint
    15  	_KindUint8
    16  	_KindUint16
    17  	_KindUint32
    18  	_KindUint64
    19  	_KindUintptr
    20  	_KindFloat32
    21  	_KindFloat64
    22  	_KindComplex64
    23  	_KindComplex128
    24  	_KindArray
    25  	_KindChan
    26  	_KindFunc
    27  	_KindInterface
    28  	_KindMap
    29  	_KindPtr
    30  	_KindSlice
    31  	_KindString
    32  	_KindStruct
    33  	_KindUnsafePointer
    34  
    35  	_KindDirectIface = 1 << 5
    36  	_KindGCProg      = 1 << 6 // Type.gc points to GC program
    37  	_KindNoPointers  = 1 << 7
    38  	_KindMask        = (1 << 5) - 1
    39  )