Re: [go-nuts] What happens if Golang calls a shared .so library via cgo but this library is built from Golang?

2021-08-20 Thread rmfr
> I mean that while it may accidentally happen to work today, it may > break in future releases. If it does break, we will not fix it to > work again. You should not assume that this will continue to behave > in the future as it behaves today. I get it. Thanks a lot, Ian :-D On Saturday, August 2

[go-nuts] Coverage Reports

2021-08-20 Thread ivan.rosales.rieloff
Hi, Anybody knows how I can get a coverage report, ever if the unit test was failed, when run go test command with -coverprofile flag always get a one line file with mode: set value inside. Regards. -- You received this message because you are subscribed to the Google Gro

Re: [go-nuts] What happens if Golang calls a shared .so library via cgo but this library is built from Golang?

2021-08-20 Thread Ian Lance Taylor
On Thu, Aug 19, 2021 at 7:30 PM rmfr wrote: > > Thanks a lot, Ian :-) > > > Assuming you are running on an ELF system and control symbol > visibility, this can work. > > To be clear, this is not supported by the Go project. > > Do you mean that this usage is not recommended in a production environ

[go-nuts] How much longer

2021-08-20 Thread 'DR Hayden' via golang-nuts
How much longer are we going to have to endure this political noise on Go's otherwise helpful web site? Now that I have begun teaching after-school programming classes again, it so far has been a source of constant distraction in my classes, causing some students to posture one way or another,

Re: [go-nuts] What happens if Golang calls a shared .so library via cgo but this library is built from Golang?

2021-08-20 Thread rmfr
> Perhaps what you're trying to achieve can be done using Go Plugins instead, although beware of significant restrictions: Thanks Brian, I have looked at it, but I am afraid its usage conditions are too strict. On Friday, August 20, 2021 at 4:10:24 PM UTC+8 Brian Ca

Re: [go-nuts] What happens if Golang calls a shared .so library via cgo but this library is built from Golang?

2021-08-20 Thread Brian Candler
Perhaps what you're trying to achieve can be done using Go Plugins instead, although beware of significant restrictions: https://medium.com/learning-the-go-programming-language/writing-modular-go-programs-with-plugins-ec46381ee1a9 https://www.reddit.com/r/golang/comme