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
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
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
. 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
> >
: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
: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
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
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