github.com/Rookout/GoSDK@v0.1.48/pkg/services/instrumentation/binary_info/go_asm_no_unwrap.go (about) 1 //go:build (amd64 && go1.15 && !go1.17) || (arm64 && go1.15 && !go1.18) 2 // +build amd64,go1.15,!go1.17 arm64,go1.15,!go1.18 3 4 package binary_info 5 6 import ( 7 "reflect" 8 9 "github.com/Rookout/GoSDK/pkg/rookoutErrors" 10 ) 11 12 13 func (b *BinaryInfo) GetUnwrappedFuncPointer(f func()) (uintptr, rookoutErrors.RookoutError) { 14 return reflect.ValueOf(f).Pointer(), nil 15 }