Re: [go-nuts] Re: Contributing to golang based project on github - collaboration best practice

2021-02-03 Thread Nicholas Yue
Thank you for the different approaches. I have settled on the go.mod approach as proposed by Shulhan. Cheers On Wednesday, 3 February 2021 at 02:31:04 UTC-8 Adrian Ho wrote: > On 3/2/21 2:21 pm, Volker Dobler wrote: > > To create a Github PR: git push to your fork (add it as an additional > >

[go-nuts] Contributing to golang based project on github - collaboration best practice

2021-02-02 Thread Nicholas Yue
Hi, I am relatively new to golang coming from a C++/Python world. When contributing to C++/Python projects on GitHub, I usually fork the project, make changes to hit and submit a pull request to the author/maintainer. I found that the above didn't work for me. I am hoping to

[go-nuts] Passing string to a c-struct member of type void*

2021-01-28 Thread Nicholas Yue
Hi, I have the following struct in C == struct DataStruct { const char *name; const void *data; int type; int arraylength; size_t count; int flags; }; == I am trying to pass a string/(char *) to data. What is the correct

[go-nuts] Building executable for code with cgo produces link errors

2021-01-21 Thread Nicholas Yue
Hi, I am using Go 1.15 on Ubuntu 18.04 I am learning about cgo via the following tutorial https://golang.org/cmd/cgo/ I have the following two files which I am able to run via go run cgo_main.go Knowing that it runs, I'd like to build it into an executable but I get the