[go-nuts] Re: [security] Go 1.13.1 and Go 1.12.10 are released

2019-09-25 Thread lfernandez . dev
Hi Go team, It seems that the go1.12.10 and go1.13.1 tags are dangling/missing, it's not possible to do `git checkout go1.12.10` or `git checkout go1.13.1` https://go.googlesource.com/go/+/refs/heads/release-branch.go1.12 https://github.com/golang/go/commits/release-branch.go1.12

[go-nuts] Re: [security] Go 1.13.1 and Go 1.12.10 are released

2019-09-25 Thread lfernandez . dev
Hi Go team, It seems that the go1.12.10 and go1.13.1 tags are dangling/missing, it's not possible to do `git checkout go1.12.10` or `git checkout go1.13.1` https://go.googlesource.com/go/+/refs/heads/release-branch.go1.12 https://github.com/golang/go/commits/release-branch.go1.12

[go-nuts] Go Time #100 with Robert Griesemer and myself

2019-09-25 Thread Rob Pike
It's now live: https://changelog.com/gotime/100 -rob -- 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

[go-nuts] [security] Go 1.13.1 and Go 1.12.10 are released

2019-09-25 Thread Filippo Valsorda
Hi gophers, We have just released Go 1.13.1 and Go 1.12.10 to address a recently reported security issue. We recommend that all affected users update to one of these releases (if you’re not sure which, choose Go 1.13.1). net/http (through net/textproto) used to accept and normalize invalid

Re: [go-nuts] Dependency injection in gorillamux handlers

2019-09-25 Thread George Hartzell
Le lundi 23 septembre 2019 18:35:06 UTC+2, Abhinav Gupta a écrit : > [...] > myRouter.Handle("/endpoint1/", http.HandlerFunc(h.Endpoint1)).Methods("POST", > "OPTIONS") > // or > myRouter.HandleFunc("/endpoint1/", h.Endpoint1).Methods("POST", "OPTIONS") > Should that instead be (replacing

[go-nuts] [ANN] sorty

2019-09-25 Thread Serhat Şevki Dinçer
Hi everyone, I've been improving type-specific concurrent sorting library sorty for a while and the results seem really competitive on different data types for such a small library (effective code is less than 200 lines). It also implements sort.Interface,

Re: [go-nuts] redirecting http to https

2019-09-25 Thread Dimas Prawira
I would rather to use nginx for redirecting from http to https. On Wed, Sep 25, 2019, 6:37 AM 'Julia Ma' via golang-nuts < golang-nuts@googlegroups.com> wrote: > Hi all, > I recently realized that request.URL.Scheme is not the correct field to > check whether a request is https or not (thank you

[go-nuts] Re: redirecting http to https

2019-09-25 Thread Diego Medina
You can run a go routine similar to: go func() { log.Fatal(http.ListenAndServe(":80", http.HandlerFunc(httpToHTTPS))) }() //httpToHTTPS redirects all http to https func httpToHTTPS(w http.ResponseWriter, r *http.Request) { http.Redirect(w, r, "https://"+r.Host+r.URL.String(),

Re: [go-nuts] Utility functions for package testing that read the source code

2019-09-25 Thread Robert Johnstone
Thank-you for the feedback. I will also checkout the packages that you mentioned. No need to reinvent the wheel. Robert On Wednesday, 25 September 2019 08:15:19 UTC-4, rog wrote: > > I've been using packages that use this technique for a long time now > (first gopkg.in/check.v1

[go-nuts] Re: VsCode syntax highlighting for tmpl files

2019-09-25 Thread Denis Bakhtin
This extension works well if templates have .gohtml extension. I had to rename mine. On Monday, September 23, 2019 at 7:25:52 PM UTC+4, cinem...@gmail.com wrote: > > Is there way to highlight templates files (.tmpl) in VSCode? There is an > extension gotemplate-syntax >

Re: [go-nuts] Dependency injection in gorillamux handlers

2019-09-25 Thread Nathanael Curin
Oh I love this! Not too verbose but still understandable, clean, and easy to add stuff. I didn't even think of using a method as a handler. Absolutely gonna go for this. Thanks! Le lundi 23 septembre 2019 18:35:06 UTC+2, Abhinav Gupta a écrit : > > You can place the dependencies into a struct

Re: [go-nuts] Go playfield has no time limit now?

2019-09-25 Thread T L
On Wednesday, September 25, 2019 at 7:52:31 AM UTC-4, Axel Wagner wrote: > > (note, that the playground never responded in realtime - the process was > run to its conclusion and a JSON doc containing all the output with > appropriate timing was served and replayed using javascript. See >

Re: [go-nuts] Utility functions for package testing that read the source code

2019-09-25 Thread roger peppe
I've been using packages that use this technique for a long time now (first gopkg.in/check.v1 , and latterly github.com/frankban/quicktest ), and I can confirm that it works great. In general, tests can assume

Re: [go-nuts] Go playfield has no time limit now?

2019-09-25 Thread 'Axel Wagner' via golang-nuts
(note, that the playground never responded in realtime - the process was run to its conclusion and a JSON doc containing all the output with appropriate timing was served and replayed using javascript. See https://blog.golang.com/playground) On Wed, Sep 25, 2019 at 1:50 PM Axel Wagner wrote: >

Re: [go-nuts] Go playfield has no time limit now?

2019-09-25 Thread 'Axel Wagner' via golang-nuts
It obviously still has a time-limit: https://play.golang.org/p/GH67vNtpZyp (also, your program is an endless loop too) What changed, I guess, is that output produced before the process got cut of is now actually served. On Wed, Sep 25, 2019 at 1:29 PM T L wrote: > For example:

[go-nuts] Go playfield has no time limit now?

2019-09-25 Thread T L
For example: https://play.golang.org/p/YhWgTpzGj0T -- 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

Re: [go-nuts] Forking gotk3 not working?

2019-09-25 Thread Ian Davis
On Tue, 24 Sep 2019, at 11:02 AM, erich.r...@gmail.com wrote: > Hi! This is perhaps more a question about git than Go but must have something > to do with go get, too. I tried to fork gotk3 from github on the web page > (using Fork button), because I need to merge some important 3rd party pull

[go-nuts] Re: Forking gotk3 not working?

2019-09-25 Thread Volker Dobler
In general: You cannot use a Github Fork of a Go module. A fork creates a new package/module with different package/module names and in general (trivial cases _do_ work) you cannot even build it. What you should do: - Fork the repo but do not work on your fork! - Clone the repo you want to work

Re: [go-nuts] Cannot find libraries at go.pedge.io by Peter Edge

2019-09-25 Thread Ian Davis
On Tue, 24 Sep 2019, at 10:48 PM, Craig Rodrigues wrote: > I have a package where the dependencies were vendored in a few years ago > using govendor. > > I am trying to convert the vendor tree from govendor to go modules. > > I a having problems finding libraries written by Peter Edge, > which