Source file src/cmd/internal/objabi/typekind.go

     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 objabi
     6  
     7  // Must match runtime and reflect.
     8  // Included by cmd/gc.
     9  
    10  const (
    11  	KindBool = 1 + iota
    12  	KindInt
    13  	KindInt8
    14  	KindInt16
    15  	KindInt32
    16  	KindInt64
    17  	KindUint
    18  	KindUint8
    19  	KindUint16
    20  	KindUint32
    21  	KindUint64
    22  	KindUintptr
    23  	KindFloat32
    24  	KindFloat64
    25  	KindComplex64
    26  	KindComplex128
    27  	KindArray
    28  	KindChan
    29  	KindFunc
    30  	KindInterface
    31  	KindMap
    32  	KindPtr
    33  	KindSlice
    34  	KindString
    35  	KindStruct
    36  	KindUnsafePointer
    37  	KindDirectIface = 1 << 5
    38  	KindGCProg      = 1 << 6
    39  	KindMask        = (1 << 5) - 1
    40  )
    41  

View as plain text