github.com/gramework/runtimer@v0.0.0-20211014201118-d25b6e2ccefd/ptrToType.go (about)

     1  package runtimer
     2  
     3  import "unsafe" // #nosec
     4  
     5  func PtrToType(ptr unsafe.Pointer) *Type {
     6  	return (*Type)(ptr)
     7  }