Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Patch ¶
type Patch struct {
// contains filtered or unexported fields
}
Patch is a context that holds the address and original codes of the patched function.
func PatchValue ¶
PatchValue replace the target function with a hook function, and stores the target function in the proxy function for future restore. Target and hook are values of function. Proxy is a value of proxy function pointer.
Click to show internal directories.
Click to hide internal directories.