Re: [go-nuts] Generic function aliases

2020-09-28 Thread Sokolov Yura
It is pity `func g = othermod.F` were rejected. It could simplify refactoring. For example, I've decided to move type and its constructor to other package. I could easily alias type in its previous place to remain compatibility, but I have to write ugly wrapper for constructor: type SomeEnt

Re: [go-nuts] error types/strings and errors.Is

2020-09-28 Thread Ian Lance Taylor
On Mon, Sep 28, 2020 at 3:46 AM Kevin Chadwick wrote: > > Are there any thoughts on how to handle error types. Will the user create > custom > error types from strings for use with errors.Is like for their own code or are > some error strings in the stdlib likely to change. In which case an "impo

Re: [go-nuts] embedding

2020-09-28 Thread Michał Pawełek
Thanks ! poniedziałek, 28 września 2020 o 19:00:10 UTC+2 bbse...@gmail.com napisał(a): > On Mon, Sep 28, 2020 at 10:55 AM Michał Pawełek > wrote: > > > > https://play.golang.org/p/CBuzITRmTiP > > > > Why isn't T1 allowed to pass to f ? > > func f requires an argument of type T. You cannot pass

Re: [go-nuts] embedding

2020-09-28 Thread burak serdar
On Mon, Sep 28, 2020 at 10:55 AM Michał Pawełek wrote: > > https://play.golang.org/p/CBuzITRmTiP > > Why isn't T1 allowed to pass to f ? func f requires an argument of type T. You cannot pass a value of type T1. However, T1 has T embedded in it, so you can pass: f(t1.T) > > -- > You received t

[go-nuts] embedding

2020-09-28 Thread Michał Pawełek
https://play.golang.org/p/CBuzITRmTiP Why isn't T1 allowed to pass to f ? -- 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.

[go-nuts] http server unable to authorize other CA authorities on windows

2020-09-28 Thread smartaq...@gmail.com
Team, Hi all, hope you're doing well. I have hosted a small api on windows 10 machine which I'm using as a webhook receiver. The CA authority of webhook sender is different from the CA authority of the golang api. Code of API is:- ---

Re: [go-nuts] EC crypto: Equivalent of EC_POINT_invert() in go?

2020-09-28 Thread Conrado P . L . Gouvêa
On Fri, Sep 25, 2020 at 3:01 PM Anatol Pomozov wrote: > Or more precisely it calls this code https://boringssl.googlesource.com/boringssl/+/master/crypto/fipsmodule/ec/felem.c#57 > > But I want to avoid implementing parts of EC encryption myself and looking for a standard Golang way to achieve my

[go-nuts] error types/strings and errors.Is

2020-09-28 Thread Kevin Chadwick
Are there any thoughts on how to handle error types. Will the user create custom error types from strings for use with errors.Is like for their own code or are some error strings in the stdlib likely to change. In which case an "import errors/types" managed by the stdlib might make sense? proposal