gomonkey is a library to make monkey patching in unit tests easy
go1.14 ok. go1.15 ok. go1.16 ok. go1.17 not ok, maybe because Go is about to support generics, the basic data structure has changed to some extent, including the reflect package.
Relative Features:
from vx.y to vx.y.z