Re: [go-nuts] Why doesn't Go include a contains method for things like slices?

2019-11-06 Thread Tyler Compton
That's a good point. Also, now that I think of it, with the help of a profiler it should be straightforward to identify places where iterating over a slice is a problem regardless of how the iteration is expressed. I'm convinced! On Tue, Nov 5, 2019 at 4:05 PM Robert Engels wrote: > I think that

Re: [go-nuts] Re: Auto-renew letsencrypt cert with standard library code

2019-11-06 Thread Marko Ristin-Kaufmann
Hi Mike, > >> Given how complex your file is, let me suggest you a simpler alternative: >> ... >> >> > Thanks, Marko, but I'm not sure that's simpler. My unit file has exactly > one line devoted to cert renewal. > > ExecStartPre=+/usr/bin/certbot renew > After a second look on a wider screen, I

Re: [go-nuts] Re: Auto-renew letsencrypt cert with standard library code

2019-11-06 Thread Michael Ellis
> Given how complex your file is, let me suggest you a simpler alternative: > use either caddy or revproxyry as a reverse proxy. You start two processes, > the reverse proxy and your service, and just point the reverse proxy to > your service. > > Since reverse proxy is just a binary executa

Re: [go-nuts] Re: Auto-renew letsencrypt cert with standard library code

2019-11-06 Thread Marko Ristin-Kaufmann
Hi Michael, > So I ended up biting the bullet and learning how to use systemd. The unit > file I ended up with is below. > Given how complex your file is, let me suggest you a simpler alternative: use either caddy or revproxyry as a reverse proxy. You start two processes, the reverse proxy and

[go-nuts] Re: Auto-renew letsencrypt cert with standard library code

2019-11-06 Thread Michael Ellis
Thanks Sean Liao, Kurtis Rader, Marko Ristin-Kaufman, and cg-guy. Apologies for not responding sooner. I looked at the code for Caddy and revproxyry. Neat stuff for sure and I'd seriously consider them for a more elaborate project. Thinking through my needs I concluded that it's probably bett

[go-nuts] Cannot find package problem with Go modules and Golang 1.13.4

2019-11-06 Thread sandy . kellagher
I am migrating to using Go modules with Go v1.13.4, and have hit a weird problem with importing packages from a local private repository. The project structure consists of two library modules, each of which has its own Git repository in our company Gitea server. mycompany.com├── libraryA├── ├─

Re: [go-nuts] Re: Go 1.13.4 and Go 1.12.13 are released

2019-11-06 Thread Michel Casabianca
Hi Gophers, I have updated my list of all Go interfaces at http://sweetohm.net/article/go-interfaces.en.html Enjoy! Le ven. 1 nov. 2019 à 10:27, Stephen Illingworth < stephen.t.illingwo...@gmail.com> a écrit : > Build fails here. Using v1.13 to build: > > go test proxy running at GOPROXY=http:/

[go-nuts] Re: Auto-renew letsencrypt cert with standard library code

2019-11-06 Thread golangguy
May be , I hope you use letusencryt auto renew and running this under cron , If you dont want to add any other library , use can put it as a systemctl service, restart when exits using the service. That might work On Tuesday, 5 November 2019 22:50:11 UTC+5:30, Michael Ellis wrote: > > >