Re: [go-nuts] Preparing defaults for multiple-values-returning functions

2019-07-23 Thread Thomas Bruyelle
I prefer to define a local func that returns the default values. https://play.golang.org/p/UOPdouwoy0v (Moreover you should avoid using `else` behind `return`) Le lundi 22 juillet 2019 21:08:53 UTC+2, Robert Engels a écrit : > > Depends on the length of the function, and number of

Re: [go-nuts] Re: Compatibility between golang.org/x/crypto/argon2 and the legacy one

2018-10-11 Thread Thomas Bruyelle
Yes, that's acceptable. Le jeu. 11 oct. 2018 à 21:28, Sam Whited a écrit : > On Thu, Oct 11, 2018, at 14:14, Thomas Bruyelle wrote: > > That say, the downside is I have to keep both hash system, until all > users > > connect, which can take a long time, or can never happe

Re: [go-nuts] Re: Compatibility between golang.org/x/crypto/argon2 and the legacy one

2018-10-11 Thread Thomas Bruyelle
That say, the downside is I have to keep both hash system, until all users connect, which can take a long time, or can never happen! Le jeu. 11 oct. 2018 à 21:08, Thomas Bruyelle a écrit : > This is brillant, thanks again Sam. > I think I'll go for something like that. The argon2 hash ca

Re: [go-nuts] Re: Compatibility between golang.org/x/crypto/argon2 and the legacy one

2018-10-11 Thread Thomas Bruyelle
. 11 oct. 2018 à 21:01, Sam Whited a écrit : > On Thu, Oct 11, 2018, at 13:56, Thomas Bruyelle wrote: > > Unfortunately, because of that version mismatch, all my users' hashes > were > > created with a version not supported by golang.org/x/crypto/argon2, so > I > >

Re: [go-nuts] Compatibility between golang.org/x/crypto/argon2 and the legacy one

2018-10-11 Thread Thomas Bruyelle
:45 UTC+2, Sam Whited a écrit : > > On Thu, Oct 11, 2018, at 11:37, Thomas Bruyelle wrote: > > I want to update my authentication code by using > > golang.org/x/crypto/argon2, as a replacement of > > github.com/tvdburgt/go-argon2 which uses the legacy C lib under the

[go-nuts] Re: Compatibility between golang.org/x/crypto/argon2 and the legacy one

2018-10-11 Thread Thomas Bruyelle
:07 UTC+2, Thomas Bruyelle a écrit : > > Hi all, > > I want to update my authentication code by using > golang.org/x/crypto/argon2, as a replacement of > github.com/tvdburgt/go-argon2 which uses the legacy C lib under the hood > through CGO. > The main benefit is of

[go-nuts] Compatibility between golang.org/x/crypto/argon2 and the legacy one

2018-10-11 Thread Thomas Bruyelle
Hi all, I want to update my authentication code by using golang.org/x/crypto/argon2, as a replacement of github.com/tvdburgt/go-argon2 which uses the legacy C lib under the hood through CGO. The main benefit is of course to drop the usage of CGO. But I encounter a serious issue, with the same

[go-nuts] Re: [ANN] A blog post series on serving big satellite imagery with Go

2017-12-19 Thread Thomas Bruyelle
Interesting and nice pieces of code. I wonder if the performances can be compared to something like `vips` (https://jcupitt.github.io/libvips). Le lundi 18 décembre 2017 22:51:49 UTC+1, Pablo Rozas Larraondo a écrit : > > Hi, > > For those interested on serving or using satellite imagery, I've