Re: [go-nuts] Using cgo with go modules

2019-05-09 Thread Ian Lance Taylor
On Thu, May 9, 2019 at 8:21 AM wrote: > > Thanks for the reply. > Is there any automatic way to build a dynamic library that cgo-package > depends on? No, I don't think so. > I have the following line in sources of my cgo package(I have the dynamic > library libcl3go.so in cwrap folder): > //

[go-nuts] Re: gomobile and module

2019-05-09 Thread tschinke256 via golang-nuts
We had also the same challenges. It is a tough task to integrate go modules seamlessly into XCode, Android Studio and our CI. Our approach is to create a temporary workspace to vendor the entire gomobile build. We started first by using a bash script solution, but ended up with a custom build to

Re: [go-nuts] Using cgo with go modules

2019-05-09 Thread grubian . euhen
Thanks for the reply. Is there any automatic way to build a dynamic library that cgo-package depends on? I have the following line in sources of my cgo package(I have the dynamic library *libcl3go.so* in *cwrap* folder): // #cgo LDFLAGS: -Lcwrap/ -lcl3go When I use `go get ` or `go build ` I

Re: [go-nuts] Timers and implementation of a timeout system on requests

2019-05-09 Thread Burak Serdar
On Thu, May 9, 2019 at 9:03 AM Nathanael Curin wrote: > > Hi everyone, > > Searching Go's documentation and this group didn't really help me find what > I'm looking for so, here goes. > > I'd like to implement a timeout system on every request to my HTTP server > that would work like this : > >

[go-nuts] Timers and implementation of a timeout system on requests

2019-05-09 Thread Nathanael Curin
Hi everyone, Searching Go's documentation and this group didn't really help me find what I'm looking for so, here goes. I'd like to implement a timeout system on every request to my HTTP server that would work like this : - Receive an *http.Request*, perform initial checks on validity -

Re: [go-nuts] How to run a go method on multiple cores ?

2019-05-09 Thread Marvin Renich
* Nitish Saboo [190508 05:48]: Please remove me from the CC on this thread; I am subscribed to the list. I explicitly set Reply-To, which was not respected, and now I am getting duplicates of every mail, with one copy in my personal mail and one copy in my list mail folder. In general, it is a

Re: [go-nuts] How to run a go method on multiple cores ?

2019-05-09 Thread Robert Engels
I believe you can use lockOSThread to pin a processor to the current thread, then use native code to pin the thread to a particular processor, change its priority, etc. I haven’t tried it but I see no reason it wouldn’t work - similar to how it’s not supported in Java but you can still do it - w

Re: [go-nuts] How to run a go method on multiple cores ?

2019-05-09 Thread Nitish Saboo
Hi Kurtis, Thanks for the clarification .*i*nitialize_engine() is a C code and is being called from go method 'initialize()'. If you see my reply 2 mails before, '*i*nitialize_engine()` method starts a syslog-ng engine but does not return the instance of it. And therefore there was a confusion if

[go-nuts] Re: Go 1.12.5 and Go 1.11.10 are released

2019-05-09 Thread Michel Casabianca
Hello Gophers, I have updated my list of all Go interfaces : http://sweetohm.net/article/go-interfaces.en.html Enjoy! Le mar. 7 mai 2019 à 03:43, Andrew Bonventre a écrit : > Hello gophers, > > We have just released Go versions 1.12.5 and 1.11.10, minor point releases. > > This release include