[go-nuts] Accessing certificates in Windows Store - Local Machine

2022-01-04 Thread Aggarwal Sre
Hi, My requirement is to encrypt/decrypt some secret using the private key of a certificate installed in a local machine store. It looks like google has package - https://github.com/google/certtostore But the usage is not totally clear. Also, I am not sure if this will help me achieve this.

Re: [go-nuts] unit testing OS specific code

2022-01-04 Thread 'Dan Kortschak' via golang-nuts
On Tue, 2022-01-04 at 08:29 -0800, Brieuc Jeunhomme wrote: > Hi, > > I'm writing code that uses the golang.org/x/sys/windows/svc package. > This package compiles only for windows builds, for other GOOS values, > I get a build error. That's fair, but I'm wondering how to unit test > the code that

[go-nuts] Re: TCP max segment size

2022-01-04 Thread Brieuc Jeunhomme
Thank you for your answer. In case someone else is interested, the answer I was looking for was: the Dialer struct has an optional Control member, that the user can set. It's a a function that will be called before the connect() syscall is issued, allowing to set whatever socket options

[go-nuts] unit testing OS specific code

2022-01-04 Thread Brieuc Jeunhomme
Hi, I'm writing code that uses the golang.org/x/sys/windows/svc package. This package compiles only for windows builds, for other GOOS values, I get a build error. That's fair, but I'm wondering how to unit test the code that calls svc functions when working on a non-windows environment. So

[go-nuts] Re: Command `go test` without build constraints does not work

2022-01-04 Thread Brian Candler
On Monday, 3 January 2022 at 20:47:47 UTC davi.marcon...@gmail.com wrote: > I believe it behaves this way based on what I've read here > https://mickey.dev/posts/go-build-tags-testing/ . > Another option would be to put your integration tests into a completely separate package, and leave unit

Re: [go-nuts] Help with GOLLVM

2022-01-04 Thread 'Than McIntosh' via golang-nuts
Hi, >>The whole point of my poc was to be able to get the LLVMIR of GO then put it into an iOS app with bitcode enable. What are you saying is that it is not possible to achieve this? It's definitely outside the normal/expected use of gollvm, but it seems at least possible to do this. The key

Re: [go-nuts] Re: Advise about using go mod retract to fix pre go mod v2.0.0 tag

2022-01-04 Thread Steven Hartland
Thanks Zik, looks this worked as go list -m -versions github.com/gomodule/redigo now returns the expected versions: github.com/gomodule/redigo v1.7.0 v1.7.1 v1.7.2 v1.8.0 v1.8.1 v1.8.2 v1.8.3 v1.8.4 v1.8.5 v1.8.6 v1.8.7 On Mon, 3 Jan 2022 at 02:41, Zik Aeroh wrote: > I don't think you need to