We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init
-gcflags=all=-l
os.Args
Like this
func init() { if !slices.Contains(os.Args, "-gcflags=all=-l") { fmt.Println("WARNING: inline is enabled, some gomonkey patch will failed") os.Exit(1) } }
I think this would remind developers to add -gcflags=all=-l.
But I'm not sure if this will affect go build, and judging from the current situation, my conclusion is that it won't.
go build
The text was updated successfully, but these errors were encountered:
Hi Eric, go-monkey is not aware of build flags. However, a new mock library supports what you are saying: https://github.com/xhd2015/xgo
Sorry, something went wrong.
No branches or pull requests
Like this
I think this would remind developers to add
-gcflags=all=-l
.But I'm not sure if this will affect
go build
, and judging from the current situation, my conclusion is that it won't.The text was updated successfully, but these errors were encountered: