[go-nuts] Re: cgo: how to pass an entropy source from golang to C?

2022-10-18 Thread David Stainton
Okay here I've tried a similar solution to the go-pointers library... but i had to change it a bit to fit how the C library uses the context pointer: https://git.xx.network/elixxir/ctidh_cgo/-/commit/8f02611b943c269eab5b6e888958e4d41d72cd51 It builds and runs... and then panics on the "rng is ni

Re: [go-nuts] Re: disabling HTTP/2 client with DefaultTransport

2022-10-18 Thread Jean-François Giorgi
Hi I don't understand your reply: that is what I do in client1 already... my issue was 'disabling HTTP/2 client with DefaultTransport'. Le mer. 19 oct. 2022 à 00:04, 'Dennis Vashchuk' via golang-nuts < golang-nuts@googlegroups.com> a écrit : > ``` > transport := &http.Transport{ > TLSClientConfi

[go-nuts] cgo: how to pass an entropy source from golang to C?

2022-10-18 Thread David Stainton
Greetings cgo experts, perhaps this post might also be of some interest to cryptography people as well. What's the best way for a C cryptography library to receive entropy from golang? There exists a C cryptography library (CTIDH, it's a PQ NIKE)... I am collaborating with C programmers who ar

[go-nuts] Re: disabling HTTP/2 client with DefaultTransport

2022-10-18 Thread 'Dennis Vashchuk' via golang-nuts
``` transport := &http.Transport{ TLSClientConfig: &tls.Config{}, TLSNextProto: make(map[string]func(authority string, c *tls.Conn) http.RoundTripper), // Disable HTTP/2 } client := &http.Client{ Transport: transport, } ``` On Tuesday, September 6, 2022 at 3:33:03 PM UTC+3 JeffG wrote: > Hi, >

[go-nuts] Re: golang -tour- its possible to contribute on the translation to spanish , how I can do it?

2022-10-18 Thread Franky Polanco
Linda iniciativa para llevar el tour a la comunidad hispana! El martes, 18 de octubre de 2022 a las 10:25:52 UTC-3, jonathan...@gmail.com escribió: > golang -tour- its possible to contribute on the translation to spanish , > how I can do it? > > https://go.dev/tour/welcome/2 > -- You received

[go-nuts] golang -tour- its possible to contribute on the translation to spanish , how I can do it?

2022-10-18 Thread Jonathan L
golang -tour- its possible to contribute on the translation to spanish , how I can do it? https://go.dev/tour/welcome/2 -- 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 em

Re: [go-nuts] Having trouble in running a go-git api example

2022-10-18 Thread Gergely Brautigam
Do you know how git works? You need a remote url for the repository to push to. > On 2022. Oct 18., at 12:45, PK wrote: > > Thank you, I tried to setup by this: > > if err_psh = repo.Push(&git.PushOptions{ > >RemoteName: "origin", > >}); err != nil { > >log.Fatal(err_psh)

Re: [go-nuts] Having trouble in running a go-git api example

2022-10-18 Thread PK
Thank you, I tried to setup by this: if err_psh = repo.Push(&git.PushOptions{ RemoteName: "origin", }); err != nil { log.Fatal(err_psh) } Then also the error is same. This is fine right *./push/main https://github.com/ravi-kp/graphProperties.git* On Tuesday, October 18,

Re: [go-nuts] Having trouble in running a go-git api example

2022-10-18 Thread Gergely Brautigam
> On 2022. Oct 18., at 11:19, PK wrote: > > no, Do we need to set-up something. If yes can you please let me know? Yep. Well, you are trying to push something to somewhere, right? So you need a remote set up which is usually origin. So just set up a remote and then you can push. Of course if

[go-nuts] Re: Having trouble in running a go-git api example

2022-10-18 Thread PK
no, Do we need to set-up something. If yes can you please let me know? On Tuesday, October 18, 2022 at 10:28:27 AM UTC+5:30 skarl...@gmail.com wrote: > Hello. > > Did you set up any remotes for the folder that you are trying to push? > > On Monday, 17 October 2022 at 13:16:12 UTC+2 princ...@gmai