We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
package badcase import ( "github.com/agiledragon/gomonkey" "testing" ) // 注释掉go:noinline取消内联 //go:noinline func foo(i int) int { return 1 } // TestInline 测试内联的影响 func TestInline(t *testing.T) { gomonkey.ApplyFunc(foo, func(_ int) int { return 2 }) print(foo(1)) }