Registry / testing / undefinedlabs-go-mpatch

undefinedlabs-go-mpatch

JSON →
library1.0.7gogounverified

A Go library for monkey-patching functions at runtime.

go get github.com/undefinedlabs/go-mpatch
INSTALL
IMPORT
SIG · UNDEFINEDLABS-GO-M
U
undefinedlabs-go-mpatch
testinggov1.0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mpatch
github.com/undefinedlabs/go-mpatch

Patches a function with a replacement.

import "github.com/undefinedlabs/go-mpatch" func main() { patch, _ := mpatch.PatchMethod(targetFunc, replacementFunc) defer patch.Unpatch() }
Debug
Known issues
gotchaNot supported on all platforms (e.g., arm64).
fix
Check platform compatibility before using in production.
affects: all
Upgrade
Version history
1.0.7latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
undefinedlabs-go-mpatch — go get undefinedlabs-go-mpatch · libregistry