[go-nuts] Monkey patching question

2020-04-17 Thread dick . r . chiang
An upstream package object is lowercase and thus unexported and thwarts my attempt at using bouk/monkey (github.com/bouk/monkey). How should I insert a fmt.Println in one of its methods? Thank you. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group

Re: [go-nuts] rpc.debugLog unexported

2019-12-08 Thread dick . r . chiang
Thanks for your reply. Do you regularly edit standard libs as described (and then presumably edit them back)? I copied /usr/lib/go-1.13/net/rpc to my project directory, then changed all imports of "net/rpc" to "./net/rpc", and then set debugLog (in my shadow copy, not /usr/lib/go-1.13). It got t

[go-nuts] rpc.debugLog unexported

2019-12-07 Thread dick . r . chiang
How can I turn on debugging in net/rpc/server.go? There is a promising variable called `debugLog` in there. How should I toggle it? -- 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 i