[go-nuts] Getting pkcs12: unknown attribute with OID 1.3.6.1.4.1.311.17.2 with ToPEM call

2018-11-04 Thread jyotibt
Hi I'm trying to extract a certificates,keys from the .pfx file using the call ToPEM. I get this error pkcs12: unknown attribute with OID 1.3.6.1.4.1.311.17.2 I see Decode in pkcs12 package expects only one certificate and one key file in the .pfx file. My scenario is it has multiple certs

Re: [go-nuts] relaxing type conversions: an "almost possible" idea with Go generics

2018-11-04 Thread 'Axel Wagner' via golang-nuts
On Sun, Nov 4, 2018 at 10:14 PM roger peppe wrote: > Perhaps you might want to have a go at trying to translate a slightly more > substantial piece of generic code. For example, this generic implementation > of Dijkstra's algorithm: https://play.golang.org/p/BsktFSFVU0D. I'd be > interested to

Re: [go-nuts] relaxing type conversions: an "almost possible" idea with Go generics

2018-11-04 Thread 'Axel Wagner' via golang-nuts
On Sun, Nov 4, 2018 at 10:14 PM roger peppe wrote: > This code, for example: https://play.golang.org/p/eaLHBbUJT-d > What might your generated code look like for that? > A bit ad-hoc, but WAI: https://play.golang.org/p/vuCHY2RRxIR In practice, of course, most of these wouldn't be actually

Re: [go-nuts] relaxing type conversions: an "almost possible" idea with Go generics

2018-11-04 Thread roger peppe
hOn Sun, 4 Nov 2018 at 12:09, Axel Wagner wrote: > On Sun, Nov 4, 2018 at 11:45 AM roger peppe wrote: > >> One thing to consider: at any point in your program, someone might call >> something like the following function with any value in scope: >> >>var vals []interface{} >>func save(x

Re: [go-nuts] Re: Large (binary or text) File transfers over rpc

2018-11-04 Thread Ian Denhardt
What is the functionality that you're not seeing re: how to do file downloads over net/rpc? The thing that pops to my mind as likely important is the ability to stream data, which you indeed cannot do with net/rpc. If you need that I might suggest using a different rpc system that has the

Re: [go-nuts] Re: Large (binary or text) File transfers over rpc

2018-11-04 Thread Ricky
I am sorry I wasn't very forthcoming in the beginning - to clarify - by rpc I meant using go net/rpc package. Where I can simply Register methods/services that can be called remotely as if they were functions/methods locally available. This lends to a cleaner syntax and more robust code in general

Re: [go-nuts] IO memory issue in golang

2018-11-04 Thread Robert Engels
It would appear you have a slow memory leak. I would examine the process memory usage every 30 minutes to see if it is growing... then find your memory leak using a heap examination tool. Sent from my iPhone > On Nov 4, 2018, at 11:22 AM, Aditya Giri wrote: > > fatal error: runtime: out of

Re: [go-nuts] IO memory issue in golang

2018-11-04 Thread Aditya Giri
fatal error: runtime: out of memory message='' runtime stack: runtime.throw(0x19e73ac, 0x16) golang/go/src/runtime/panic.go:605 +0x95 fp=0x7f47a4aa5c10 sp=0x7f47a4aa5bf0 pc=0x42d815 runtime.sysMap(0xc78d0a, 0x59, 0x6d3400, 0x27e2538) golang/go/src/runtime/mem_linux.go:216 +0x1d0

Re: [go-nuts] IO memory issue in golang

2018-11-04 Thread Robert Engels
Where is the panic listing? Sent from my iPhone > On Nov 4, 2018, at 2:28 AM, Aditya Giri wrote: > > I have 3 crons running in my application in production. 1st cron fetched > around 10k data and started to process. While the second cron tried to fetch > data and process it, IO memory issue

[go-nuts] IO memory issue in golang

2018-11-04 Thread Aditya Giri
I have 3 crons running in my application in production. 1st cron fetched around 10k data and started to process. While the second cron tried to fetch data and process it, IO memory issue occurred. Runtime panic. goroutine 250054613 [select, 129 minutes]: runtime.gopark(0x1a3efa0, 0x0,

[go-nuts] Re: Modules upgrade none transitive modules (aka direct modules)

2018-11-04 Thread Jérôme LAFORGE
Hi thepudds, Thx for your support and the link of issue. Are you asking how to just upgrade your direct dependencies (and then your indirect dependencies are upgraded according to the various 'require' statements in the various 'go.mod' files)? Yes. If so, could you say a bit more about why

[go-nuts] Re: Modules upgrade none transitive modules (aka direct modules)

2018-11-04 Thread thepudds1460
Hi Jerome, Are you asking how to just upgrade your direct dependencies (and then your indirect dependencies are upgraded according to the various 'require' statements in the various 'go.mod' files)? If so, could you say a bit more about why you are interested in doing that? Also, you might be

[go-nuts] [ANN] QL: New back end file format released

2018-11-04 Thread Jan Mercl
https://github.com/cznic/ql/commit/3a24a15b769132006481279fba26a5b6de695ec6 If you happen to use ql in your code, please test the new back end and report any issues[0], thanks. [0]: https://github.com/cznic/ql/issues/new -- -j -- You received this message because you are subscribed to the

Re: [go-nuts] relaxing type conversions: an "almost possible" idea with Go generics

2018-11-04 Thread 'Axel Wagner' via golang-nuts
On Sun, Nov 4, 2018 at 11:45 AM roger peppe wrote: > One thing to consider: at any point in your program, someone might call > something like the following function with any value in scope: > >var vals []interface{} >func save(x interface{}) { >vals = append (vals, x) >} > >

Re: [go-nuts] relaxing type conversions: an "almost possible" idea with Go generics

2018-11-04 Thread roger peppe
One thing to consider: at any point in your program, someone might call something like the following function with any value in scope: var vals []interface{} func save(x interface{}) { vals = append (vals, x) } For the semantics of the generic program to be consistent, the values

[go-nuts] Modules upgrade none transitive modules (aka direct modules)

2018-11-04 Thread Jérôme LAFORGE
Hello all, I am looking for a way to upgrade all none transitive modules (and eventually upgrade transitive modules according to go.mod from upgraded none transitive modules). Beause go get -u, upgrade all modules (transitive and none transitive modules). Thx in adv Jerome -- You received

Re: [go-nuts] Re: Large (binary or text) File transfers over rpc

2018-11-04 Thread Amnon Baron Cohen
And don't forget the bit-torrent class of solutions. On Friday, 2 November 2018 16:56:17 UTC, Tom Mitchell wrote: > > Moving files is a solved, non trivial problem > Have you looked at tools like scp (ssh), rsync, kermit, ftp, sftp, tftp > and network filesystems (nfs and samba)? > Even git

[go-nuts] Re: googleable guru doc page?

2018-11-04 Thread Andrei Tudor Călin
The godoc at https://godoc.org/golang.org/x/tools/cmd/guru links to http://golang.org/s/using-guru which redirects to a document describing what guru can do. On Sunday, November 4, 2018 at 6:18:42 AM UTC+1, Jeff Hodges wrote: > > Hey, I just googled "guru golang" and "go guru" and wasn't able to