github.com/szmcdull/go-forceexport@v0.0.0-20230908151957-3dac42f564da/common.go (about)

     1  package forceexport
     2  
     3  import (
     4  	"runtime"
     5  	_ "unsafe"
     6  )
     7  
     8  type (
     9  	bitvector struct {
    10  		n        int32 // # of bits
    11  		bytedata *uint8
    12  	}
    13  
    14  	// Functab struct {
    15  	// 	entry   uintptr
    16  	// 	funcoff uintptr
    17  	// }
    18  
    19  	moduleWrapper interface {
    20  		GetFtab() []functab
    21  		GetFunc(ftab functab) *runtime.Func
    22  		GetNext() moduleWrapper
    23  	}
    24  )
    25  
    26  // //go:linkname Firstmoduledata runtime.firstmoduledata
    27  // var Firstmoduledata Moduledata