...
Run Format

Source file src/pkg/runtime/type.go

     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	/*
     6	 * Runtime type representation.
     7	 * This file exists only to provide types that 6l can turn into
     8	 * DWARF information for use by gdb.  Nothing else uses these.
     9	 * They should match the same types in ../reflect/type.go.
    10	 * For comments see ../reflect/type.go.
    11	 */
    12	
    13	package runtime
    14	
    15	import "unsafe"
    16	
    17	type rtype struct {
    18		size       uintptr
    19		hash       uint32
    20		_          uint8
    21		align      uint8
    22		fieldAlign uint8
    23		kind       uint8
    24		alg        unsafe.Pointer
    25		gc         unsafe.Pointer
    26		string     *string
    27		*uncommonType
    28		ptrToThis *rtype
    29		zero      unsafe.Pointer
    30	}
    31	
    32	type _method struct {
    33		name    *string
    34		pkgPath *string
    35		mtyp    *rtype
    36		typ     *rtype
    37		ifn     unsafe.Pointer
    38		tfn     unsafe.Pointer
    39	}
    40	
    41	type uncommonType struct {
    42		name    *string
    43		pkgPath *string
    44		methods []_method
    45	}
    46	
    47	type _imethod struct {
    48		name    *string
    49		pkgPath *string
    50		typ     *rtype
    51	}
    52	
    53	type interfaceType struct {
    54		rtype
    55		methods []_imethod
    56	}
    57	

View as plain text