[go-nuts] goimports performance degrades in go module

2018-11-07 Thread Joseph Lorenzini
Hi all, If have a go.mod, goimports takes 30 seconds to run. If I remove the go.mod, then goimports takes half a second to run. Is this expected? Is goimports trying to do something with the packages found in go.mod? Is there a way to configure goimports so it ignores go.mod? Thanks, Joe

Re: [go-nuts] Re: One-liner README instructions for GitHub cross compiled binary assets

2018-11-07 Thread Paul Jolly
Thanks, I'll take a look. On Wed, 31 Oct 2018 at 14:58, komuW wrote: > > TJ's https://github.com/apex/up uses > https://github.com/goreleaser/godownloader to generate `curl bash` style > downloads. > > On Wednesday, 31 October 2018 00:28:17 UTC+3, Paul Jolly wrote: >> >> Hi - I'm hoping

Re: [go-nuts] Re: Reading Windows event logs

2018-11-07 Thread Samet Sazak
Thank you so much, I will ask to him. On 7 Nov 2018 Wed at 18:57 Robert Engels wrote: > I was referring to it because it lays out how to write the code to do it, > or it appears the original poster has probably already written the code. > WMI is a pain, lots of parsing. > > On Nov 7, 2018, at

Re: [go-nuts] Re: Reading Windows event logs

2018-11-07 Thread Samet Sazak
Thank you for quick reply but it’s not related. I found elastic/beats using eventlog package but still didn’t solve the problem:) I will try WMI queries to get event logs. Thanks, On 7 Nov 2018 Wed at 18:03 Robert Engels wrote: > Btw I know it is the beginning of the thread, but if you read

Re: [go-nuts] Re: Reading Windows event logs

2018-11-07 Thread Robert Engels
I was referring to it because it lays out how to write the code to do it, or it appears the original poster has probably already written the code. WMI is a pain, lots of parsing. > On Nov 7, 2018, at 9:51 AM, Samet Sazak wrote: > > Thank you for quick reply but it’s not related. I found

Re: [go-nuts] Re: Reading Windows event logs

2018-11-07 Thread Robert Engels
Btw I know it is the beginning of the thread, but if you read through it, you will see what or how to do it. > On Nov 7, 2018, at 8:59 AM, Robert Engels wrote: > > Maybe this... > https://grokbase.com/t/gg/golang-nuts/156jvs0e0p/go-nuts-reading-windows-event-logs > >> On Nov 7, 2018, at

Re: [go-nuts] Re: Reading Windows event logs

2018-11-07 Thread Robert Engels
Maybe this... https://grokbase.com/t/gg/golang-nuts/156jvs0e0p/go-nuts-reading-windows-event-logs > On Nov 7, 2018, at 7:42 AM, smt...@gmail.com wrote: > > > Yes, anyone ? > > 13 Ocak 2016 Çarşamba 15:35:33 UTC+2 tarihinde Durgababu Neelam yazdı: >> >> Hi, >> >> can any one provide the code

[go-nuts] Re: Reading Windows event logs

2018-11-07 Thread smtszk
Yes, anyone ? 13 Ocak 2016 Çarşamba 15:35:33 UTC+2 tarihinde Durgababu Neelam yazdı: > > Hi, > > can any one provide the code to read/query event logs in golang? > > thanks > > On Sunday, June 21, 2015 at 2:38:44 PM UTC+5:30, brainman wrote: >> >> On Saturday, 20 June 2015 18:49:29 UTC+10,

Re: [go-nuts] Locate source code path (to import for code gen) of go module enabled project.

2018-11-07 Thread bsr
Paul & Ian. `tools/go/packages ` worked great in my case. thanks. On Wednesday, November 7, 2018 at 12:05:04 AM UTC-5, Paul Jolly wrote: > > cc golang-tools > > You need to be using https://godoc.org/golang.org/x/tools/go/packages in > place