【问题标题】:underfined function error in go :jmpToFunctionValueunderfined function error in go :jmpToFunctionValue
【发布时间】:2022-12-02 10:35:35
【问题描述】:

While running main.go getting this error in monkey file and function is given below.

bou.ke/monkey

../go/pkg/mod/bou.ke/monkey@v1.0.2/replace.go:24:14: undefined: jmpToFunctionValue

Anyone help me with that?

【问题讨论】:

  • The jmpToFunctionValue is not implemented for your OS or architecture. I would not recommend using an unsupported, unmaintained library to try and monkey patch the executable at runtime.

标签: go goland


【解决方案1】:

I also face this error while using mac M1.

could you check the goarch var in go env? if you got arm64, you need to change it to amd64 using this command

 go env -w GOARCH=amd64

it works for me

【讨论】:

    猜你喜欢
    • 2017-09-19
    • 2022-01-27
    • 2020-06-07
    • 1970-01-01
    • 2021-07-30
    • 2017-03-30
    • 2020-03-25
    • 2019-08-30
    • 1970-01-01
    相关资源
    最近更新 更多