Re: [go-nuts] Loading Go plugin from Go shared library ends up with `fatal error: runtime: no plugin module data`

2020-01-07 Thread Karthik Krishnamurthy
-> Go shared library -> Go plugin is an unsupported situation. Am I missing something? Thanks, Karthik. On Tuesday, January 7, 2020 at 6:20:50 AM UTC-8, Ian Lance Taylor wrote: > > On Mon, Jan 6, 2020 at 11:54 PM Karthik Krishnamurthy > > wrote: > > > > This is prob

[go-nuts] Loading Go plugin from Go shared library ends up with `fatal error: runtime: no plugin module data`

2020-01-06 Thread Karthik Krishnamurthy
Hello, This is probably an unusual situation, but I am working on a product that has the following chain of invocation. C (native shared library libfoo.so) -> Go (c-shared libbar.so) So basically, a native C shared library invokes a -buildmode=c-shared type Go shared library. This interaction

Re: [go-nuts] How to mock structs with interdependent interface methods?

2019-12-17 Thread Karthik Krishnamurthy
Thanks for the response Ian. My apologies for a delayed response (inline). On Friday, December 13, 2019 at 6:11:20 AM UTC-8, Ian Davis wrote: > > On Thu, 12 Dec 2019, at 10:27 PM, karth...@gmail.com wrote: > > Specifically, I couldn't find how to partially mock the struct. Most > suggestions rev