[go-nuts] idea: generic methods on slices with some generic type support []string.Map(string) []string => [].Map() []

2017-05-24 Thread mhhcbon
see the title, only for what s needed Slice/Splice/Each/Map/First/Last/Reverse/Sort ect ect not len, for reason. so interface system serves the userland by its definition of struct, and the basic slice type provided by the language is fully operational, without breaking, btw. i don t go further

Re: [go-nuts] netutil.LimitListener(lis, n) limits to n-2 requests

2017-05-24 Thread Pablo Rozas Larraondo
Hi Kevin, That's been a very good guess. Disabling the keep alive on the server has made it to serve exactly the number of concurrent requests specified on the LimitListener. Thank you very much for your help. Now I have to do some work to better understand how all these concepts play together. C

[go-nuts] Re: bash completion for flag package

2017-05-24 Thread mhhcbon
wahou :) trying it now! On Tuesday, May 23, 2017 at 9:21:07 PM UTC+2, Eyal Posener wrote: > > I recently did the complete package , > that enables bash completion for the go command line. > I came to be really satisfied with the result, but the package downsid

[go-nuts] Re: File diff based go test check

2017-05-24 Thread Tong Sun
Just FTA, I've implemented such File diff based go test checking in my easygen universal code/text generator https://github.com/go-easygen/easygen#details without pulling any extra packages. Specifically, the test file is at, https://github.com/go-easy

[go-nuts] Re: [golang-dev] Golang Developers @ Dallas,TX

2017-05-24 Thread Brad Fitzpatrick
[+golang-nuts, moving golang-dev to bcc] On Wed, May 24, 2017 at 12:59 PM, Amruta Shenolikar Warkad < amruta.shenoli...@gmail.com> wrote: > Hi, > > Looking for Go Developers for a position @ Dallas,TX. Please email resumes > to amruta.war...@resolvetech.com > > -- > You received this message bec

[go-nuts] How can I tell if a http.Server has a TLS listener?

2017-05-24 Thread Frank Schröder
I've tried this but srv.TLSConfig is always non-nil. package main import ( "log" "net/http" "time" ) func main() { srv := &http.Server{Addr: ":8080"} go srv.ListenAndServe() time.Sleep(25 * time.Millisecond) if srv.TLSConfig == nil { log.Println("Started HTTP Server on ", srv.Addr) } else { log

[go-nuts] Go 1.8.3 is released

2017-05-24 Thread Chris Broadfoot
Hi gophers, We have just released Go version 1.8.3, a minor point release. This release includes fixes to the compiler, runtime, documentation, and the database/sql package. https://golang.org/doc/devel/release.html#go1.8.minor It also includes the security fix to the crypto/elliptic package

[go-nuts] Go 1.8.3 is released

2017-05-24 Thread Nathan Kerr
Thanks for the hard work. I updated my Go Release Timeline: https://pocketgophers.com/go-release-timeline/#go1.8.3 -- 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

[go-nuts] Re: How can I tell if a http.Server has a TLS listener?

2017-05-24 Thread Frank Schröder
This works but it is somewhat ugly ... // l is either a tls.listener or a TCPListener if strings.Contains("*tls.listener", fmt.Sprintf("%T", l)) { srv.proto = "https" } -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this gro

Re: [go-nuts] Re: How can I tell if a http.Server has a TLS listener?

2017-05-24 Thread Aldrin Leal
Can't you use type assertions? https://tour.golang.org/methods/15 -- -- Aldrin Leal, / http://about.me/aldrinleal On Wed, May 24, 2017 at 4:50 PM, Frank Schröder wrote: > This works but it is somewhat ugly ... > > // l is either a tls.listener or a TCPListener > if strings.Contains("*tls.list

Re: [go-nuts] Re: How can I tell if a http.Server has a TLS listener?

2017-05-24 Thread Frank Schröder
Only for exported types. tls.listener isn't -- 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. For more options, visit http