agiledragon / gomonkey

gomonkey is a library to make monkey patching in unit tests easy
MIT License
1.98k stars 179 forks source link

could windows be supported? #6

Closed liuhuiping2013 closed 5 years ago

liuhuiping2013 commented 5 years ago

run go test on windows will output:

undefined: syscall.PROT_READ
agiledragon commented 5 years ago

This is because currently Windows is not supported. I don't use Windows so if someone can submit a PR that would be great. You would need to add a file for Windows similar to modify_binary_unix or wait for a few days.

agiledragon commented 5 years ago

Windows has been supported now!