go typekind 源码

  • 2022-07-15
  • 浏览 (903)

golang typekind 代码

文件路径:/src/cmd/internal/objabi/typekind.go

// Copyright 2012 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.

package objabi

// Must match runtime and reflect.
// Included by cmd/gc.

const (
	KindBool = 1 + iota
	KindInt
	KindInt8
	KindInt16
	KindInt32
	KindInt64
	KindUint
	KindUint8
	KindUint16
	KindUint32
	KindUint64
	KindUintptr
	KindFloat32
	KindFloat64
	KindComplex64
	KindComplex128
	KindArray
	KindChan
	KindFunc
	KindInterface
	KindMap
	KindPtr
	KindSlice
	KindString
	KindStruct
	KindUnsafePointer
	KindDirectIface = 1 << 5
	KindGCProg      = 1 << 6
	KindMask        = (1 << 5) - 1
)

相关信息

go 源码目录

相关文章

go autotype 源码

go flag 源码

go flag_test 源码

go funcdata 源码

go funcid 源码

go head 源码

go line 源码

go line_test 源码

go path 源码

go path_test 源码

0  赞