{"id":76069,"library":"cch123-supermonkey","title":"Supermonkey","description":"A Go monkey patching library for replacing functions at runtime.","status":"active","version":"1.0.1","language":"go","source_language":null,"source_url":"https://github.com/cch123/supermonkey","tags":["testing","monkey-patching","mock","runtime"],"install":[{"cmd":"go get github.com/cch123/supermonkey","lang":"bash","label":"Install github.com/cch123/supermonkey"}],"dependencies":[],"imports":[{"symbol":"supermonkey","correct":"github.com/cch123/supermonkey"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/cch123/supermonkey\"\n)\n\nfunc original() string { return \"original\" }\n\nfunc main() {\n\tpatch := supermonkey.Patch(original, func() string { return \"patched\" })\n\tdefer patch.Unpatch()\n\tfmt.Println(original())\n}","lang":"go","description":"Patch a function and restore it later."},"warnings":[{"fix":"Test thoroughly on your target platform and Go version.","message":"Supermonkey may not work on all platforms or Go versions due to runtime constraints.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'function':9 'go':3 'librari':6 'mock':16 'monkey':4,14 'monkey-patch':13 'patch':5,15 'replac':8 'runtim':11,17 'supermonkey':1 'test':12","created_at":"2026-06-17T19:24:24.967441+00:00","updated_at":"2026-06-17T19:24:24.967441+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/cch123/supermonkey","github":"https://github.com/cch123/supermonkey","docs":"https://pkg.go.dev/github.com/cch123/supermonkey#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}