Closed Ericwww closed 6 days ago
@Ericwww It is a good idea, thank you!
@Ericwww You can commit a PR: func init() { if !slices.Contains(os.Args, "-gcflags=all=-l") { fmt.Println("WARNING: inline is enabled, some gomonkey patches may be failed!") } }
Remember to run tests before committing your changes.
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.