cch123 / cch123/supermonkey

patch fun after how get origin fun

Open
#12 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Go
Stars
257
Forks
15
PR merge metrics
No merged PRs in 30d

Description

not use UnPatch
``` go
package main

import (
"fmt"
sm "github.com/cch123/supermonkey"
"time"
)
//go:noinline
func Now() time.Time {
return time.Time{}
}

func main() {
sm.Patch(time.Now, Now)
fmt.Println(time.Now())
// how call origin Now fun
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.