Re: [go-nuts] plugin questions....

2017-03-01 Thread Ian Lance Taylor
On Tue, Feb 28, 2017 at 10:55 PM, Basile Starynkevitch wrote: > > On Wednesday, March 1, 2017 at 7:17:42 AM UTC+1, Ian Lance Taylor wrote: >> >> On Tue, Feb 28, 2017 at 12:44 PM, Basile Starynkevitch >> wrote: >> > Can the packages defined in

Re: [go-nuts] plugin questions....

2017-02-28 Thread Basile Starynkevitch
On Wednesday, March 1, 2017 at 7:17:42 AM UTC+1, Ian Lance Taylor wrote: > > On Tue, Feb 28, 2017 at 12:44 PM, Basile Starynkevitch > wrote: > > Can the packages defined in one plugin be visible from plugins loaded > > afterwards? I'm thinking of a dlopen with

Re: [go-nuts] plugin questions....

2017-02-28 Thread Ian Lance Taylor
On Tue, Feb 28, 2017 at 12:44 PM, Basile Starynkevitch wrote: > > Can a plugin be made of several source files in Go? Yes. > How should then I > compile a single plugin myfoo.so from several Go source files ? Can a > plugin define several packages? A plugin is a main

Re: [go-nuts] plugin questions....

2017-02-28 Thread Basile Starynkevitch
On Tuesday, February 28, 2017 at 10:16:27 PM UTC+1, Ian Lance Taylor wrote: > > On Tue, Feb 28, 2017 at 12:44 PM, Basile Starynkevitch > wrote: > > > > A few questions and wishes about plugins (Go1.8 Linux/amd64) > > Sorry, but you need to indicate whether you are

Re: [go-nuts] plugin questions....

2017-02-28 Thread Ian Lance Taylor
On Tue, Feb 28, 2017 at 12:44 PM, Basile Starynkevitch wrote: > > A few questions and wishes about plugins (Go1.8 Linux/amd64) Sorry, but you need to indicate whether you are talking about -buildmode=plugin (an experimental option to build plugins that may be opened by

[go-nuts] plugin questions....

2017-02-28 Thread Basile Starynkevitch
Hello All, A few questions and wishes about plugins (Go1.8 Linux/amd64) Can a plugin be made of several source files in Go? How should then I compile a single plugin myfoo.so from several Go source files ? Can a plugin define several packages? Can a plugin contain several packages? How can