[go-nuts] Re: x/net/Listen behaviours

2019-09-06 Thread Jacques Supcik
at "if > useListener>0 {}" scope? So server.ListenAndServe() is always invoked? > > If so, then - thanks a lot for the help! :) > > Cheers, > > J. > > On Friday, September 6, 2019 at 8:09:37 AM UTC-5, Jacques Supcik wrote: >> >> Hello, >> >&g

[go-nuts] Re: x/net/Listen behaviours

2019-09-06 Thread Jacques Supcik
Hello, I tried your program and when you call listener, err := net.Listen("tcp4", addrString) it does indeed only listen to "tcp4". Later, when you call server.ListenAndServe() (because listener is nil), the system seems to "re-listen" from the same port and then it listen to "tcp" and not

Re: [go-nuts] Re: how to merge different struct to one struct

2019-08-24 Thread Jacques Supcik
I'm glad I could help. Cheers, -- Jacques -- 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 it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on

[go-nuts] Re: how to merge different struct to one struct

2019-08-24 Thread Jacques Supcik
As suggested by Kurtis Rader, I would use "reflection" for this. Here is a simple example (not fully tested, probably not safe, not production ready... so just for demonstration purpose) : https://play.golang.org/p/sAyBajxsTAN -- Jacques -- You received this message because you are

[go-nuts] Re: Running tests per package with Go module

2019-08-20 Thread Jacques Supcik
Hello Chris, I made a small project with the same structure as yours to reproduce the problem : https://github.com/supcik/rtppwgm But in my project, everything works as expected : » go test -count=1 ./... ok demo/pkg1 0.006s ok demo/pkg2 0.006s » go test -count=1