Re: [go-nuts] How to store the address of C struct on Go side in an array (cgo)

2019-07-12 Thread Kurtis Rader
On Fri, Jul 12, 2019 at 10:53 AM Nitish Saboo wrote: > Thanks for pointing it out.I am a beginner with Go and CGO and have never > worked on corruption issues with C. > I am familiar with python and Java.So just seeking help from the experts > to find the pain points that should be looked into.

Re: [go-nuts] Go NaCl and C NaCl/libsodium

2019-07-12 Thread Dan Kortschak
Different type of salt here. This is Networking and Cryptography library, not Native Client. On Fri, 2019-07-12 at 21:33 -0700, Ian Lance Taylor wrote: > On Fri, Jul 12, 2019 at 9:28 PM mike wrote: > > > > Does anyone have any sample code which shows interoperability > > between Go's golang.org/

Re: [go-nuts] Go NaCl and C NaCl/libsodium

2019-07-12 Thread Ian Lance Taylor
On Fri, Jul 12, 2019 at 9:28 PM mike wrote: > > Does anyone have any sample code which shows interoperability between Go's > golang.org/x/crypto/nacl/box and C's NaCl or libsodium? I have been having > trouble boxing with Go and opening with NaCl (and vice versa). I have used > NaCl from C a lo

[go-nuts] Go NaCl and C NaCl/libsodium

2019-07-12 Thread mike
Does anyone have any sample code which shows interoperability between Go's golang.org/x/crypto/nacl/box and C's NaCl or libsodium? I have been having trouble boxing with Go and opening with NaCl (and vice versa). I have used NaCl from C a lot, but the Go NaCl packages are new to me. I am a littl

Re: [go-nuts] Automated Gerrit reviews

2019-07-12 Thread Henri Koski
Looks like adding github checks support wouldn't be too hard to implement. I can try to do it once I'm back from holiday. On Fri, Jul 12, 2019, 17:21 Brian Hatfield wrote: > For Github, integration with the Checks API seems like the way you'd do > it: https://developer.github.com/v3/checks/ > >

[go-nuts] Re: General thoughts about new proposals

2019-07-12 Thread Space A.
Well said! +1 On Thursday, July 4, 2019 at 1:02:45 PM UTC+3, Slawomir Pryczek wrote: > > Following this group for couple years and I think that from some time the > community is in some kind of crisis, because it seems that go1 is so good > that there's a lack of some feature which will distinct

[go-nuts] Re: Not receiving email digests

2019-07-12 Thread Space A.
Same. On Thursday, July 11, 2019 at 2:33:46 AM UTC+3, amr wrote: > > I appear to be no longer receiving the email digests daily. I last > received a daily on 26th June, and then a single daily on 2nd July. I tried > leaving the group and rejoining yesterday, to no avail! > Any ideas, please, mod

Re: [go-nuts] How to store the address of C struct on Go side in an array (cgo)

2019-07-12 Thread Ian Lance Taylor
On Fri, Jul 12, 2019 at 10:53 AM Nitish Saboo wrote: > > Thanks for pointing it out.I am a beginner with Go and CGO and have never > worked on corruption issues with C. > I am familiar with python and Java.So just seeking help from the experts to > find the pain points that should be looked int

Re: [go-nuts] How to store the address of C struct on Go side in an array (cgo)

2019-07-12 Thread Nitish Saboo
Hi Michael, Thanks for pointing it out.I am a beginner with Go and CGO and have never worked on corruption issues with C. I am familiar with python and Java.So just seeking help from the experts to find the pain points that should be looked into. Hence, asking questions to Ian as in where all I s

Re: [go-nuts] Let's play

2019-07-12 Thread Marvin Renich
* Ali Hassan [190712 12:56]: > > If you curious about check out the link below > https://koohinoorgo.blogspot.com/2019/07/methods-bind-to-special-type-of-receiver.html The only thing about this message that does not look like a phishing or Trojan attack is the end of the URL. The subject and t

[go-nuts] Let's play

2019-07-12 Thread Ali Hassan
If you curious about check out the link below https://koohinoorgo.blogspot.com/2019/07/methods-bind-to-special-type-of-receiver.html -- 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 i

Re: [go-nuts] How to store the address of C struct on Go side in an array (cgo)

2019-07-12 Thread Michael Jones
It is really impossible to help you debug what is to the thousands of readers here an invisible unseen program. You have a logic error. You don't know where it is (of course, you are busy trying to find it) but we can't know either as we don't see the code. General advice, as always, is to "trap" t

Re: [go-nuts] How to store the address of C struct on Go side in an array (cgo)

2019-07-12 Thread Nitish Saboo
Hi Ian, > syslogparser.go > = > > func (obj SyslogParser) LoadPatternDB(opts Syslog, workerId int) { log.Info("Loading pattern db with path:", opts.Patterndb) > patterndbpath := C.CString(opts.Patterndb) . <<< . STEP 1 > defer C.free(unsafe.Pointer(patterndbpath)) . <<

[go-nuts] Simple web components and other libraries

2019-07-12 Thread Sam Whited
Hi all, I've been working on a side project for the last few months that involved building a simple web app. As part of that, I ended up looking for lots of libraries to do things like internationalization on server rendered templates, generate one time passwords with TOTP, run migrations, etc. an

Re: [go-nuts] The "leave "if err != nil" alone?" anti-proposal

2019-07-12 Thread Sam Whited
On Fri, Jul 12, 2019, at 06:31, Andrey Tcherepanov wrote: > I haven't seen your proposal before, but it looks interesting - you > seem to have put quite a thought into it already. To be clear, this isn't actually a proposal. I was just toying with the idea and there's really not much thought put i

Re: [go-nuts] How to store the address of C struct on Go side in an array (cgo)

2019-07-12 Thread Ian Lance Taylor
On Thu, Jul 11, 2019 at 11:41 PM Nitish Saboo wrote: > > syslogparser.go > = > > func (obj SyslogParser) LoadPatternDB(opts Syslog, workerId int) { > patterndbpath := C.CString(opts.Patterndb) . <<< . STEP 1 > defer C.free(unsafe.Pointer(patterndbpath)) .

Re: [go-nuts] Automated Gerrit reviews

2019-07-12 Thread Brian Hatfield
For Github, integration with the Checks API seems like the way you'd do it: https://developer.github.com/v3/checks/ On Fri, Jul 12, 2019 at 10:18 AM Ivan Borshukov wrote: > Thanks for sharing, it looks quite interesting. > > Do you think it would be possible (and easy) to extend the tool to supp

Re: [go-nuts] Automated Gerrit reviews

2019-07-12 Thread Ivan Borshukov
Thanks for sharing, it looks quite interesting. Do you think it would be possible (and easy) to extend the tool to support posting comments in GitLab or GitHub? There are times that some static check failures are ok, but that’s now always the case. So instead of failing the build or tests it woul

Re: [go-nuts] get interface and method name

2019-07-12 Thread Martin Schnabel
Because AccountService.Create is a method expression you can get to the interface type by inspecting its first argument. Then you could check the interface type for all methods and compare the input and output parameters. This however is brittle and only works if you can guarantee that there is no

[go-nuts] Automated Gerrit reviews

2019-07-12 Thread henri . t . koski
https://github.com/heppu/go-review I wrote small tool which takes various linter reports as input and posts those as comments to gerrit reviews. I use it at work with golangci-lint in our Jenkins CI pipe. Any feedback is much appreciated. =) -- You received this message because you are subscri

Re: [go-nuts] get interface and method name

2019-07-12 Thread Vasiliy Tolstov
чт, 11 июл. 2019 г. в 00:27, Ian Lance Taylor : > > On Wed, Jul 10, 2019 at 1:40 PM Vasiliy Tolstov wrote: > > > > Hi! i have interface like > > > > type AccountService interface { > > Create(context.Context) error > > } > > > > if i need to get string representation of this interface from passe