github.com/undefinedlabs/go-mpatch@v1.0.8-0.20230904093002-fbac8a0d7853/patcher_unsupported.go (about) 1 //go:build !386 && !amd64 && !arm64 2 // +build !386,!amd64,!arm64 3 4 package mpatch 5 6 import ( 7 "errors" 8 "fmt" 9 "runtime" 10 "unsafe" 11 ) 12 13 // Gets the jump function rewrite bytes 14 // 15 //go:nosplit 16 func getJumpFuncBytes(to unsafe.Pointer) ([]byte, error) { 17 return nil, errors.New(fmt.Sprintf("unsupported architecture: %s", runtime.GOARCH)) 18 }