https://github.com/undefinedlabs/go-mpatch
On Monday, January 13, 2020 at 2:35:26 PM UTC+5:30 Jason E. Aten wrote:
> If you call through an interface, you get runtime, dynamic dispatch.
>
--
This message contains confidential information and is intended only for
the individual to whom it is
If you call through an interface, you get runtime, dynamic dispatch.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
To
Hi,
The attached gist can't work for patching methods. And I do not want to use
dependency injection. This is a very big project and I'm beyond the point
that I can change it to use dependency injection.
On Sunday, January 12, 2020 at 10:00:31 PM UTC+2, prakash sharma wrote:
>
>
> I would sugges
I would suggest to use *function as type* and replace it at the run time
For more info visit these link:
https://gist.github.com/husobee/9ff87a6f27e9abb4a3bc
// now a patch example
> oldDoSomething := doSomething
> // reset func after completing method
> *defer func () { doSomething = oldDoSomethi
Hi,
I know https://github.com/bouk/monkey , but it has a very restrictive
license (it says "I do not give anyone permissions to use this tool for any
purpose. Don't use it.").
Someone knows an alternative with a better license?
Thanks in advance
--
You received this message because you are subs