[go-nuts] Re: Windows Event logs

2021-03-10 Thread atakanc...@gmail.com
If you aren't happy with what the current libraries provide and don't want to delve deep into Windows API, you can also use Powershell commands and parse the results. 10 Mart 2021 Çarşamba tarihinde saat 19:26:52 UTC+3 itibarıyla jake...@gmail.com şunları yazdı: > I can't help directly, but

[go-nuts] Serving SPA and routing for endpoints

2021-03-10 Thread Hugh Myrie
I am trying to follow the example as described in the link: https://github.com/gorilla/mux, to serve a single page application (Angular) from Go and also to route my endpoints. My endpoints are not being routed although the index.html is served. My main function has the following format:

Re: [go-nuts] What does `go install path/to/main.go` do with GO111MODULE=on?

2021-03-10 Thread 'Dan Kortschak' via golang-nuts
On Wed, 2021-03-10 at 15:20 -0800, Matt Mueller wrote: > I'm assuming this is by design, but it feels to me like go install > ./cmd/app/main.go silently failing is a bug. > > Is this worth opening an issue for? If it's a bug it's an error reporting bug. The go install command is documented to

Re: [go-nuts] What does `go install path/to/main.go` do with GO111MODULE=on?

2021-03-10 Thread jake...@gmail.com
What version of Go are you using? On Wednesday, March 10, 2021 at 6:20:50 PM UTC-5 mattm...@gmail.com wrote: > Thanks for the message! Unfortunately, > > GOBIN=$GOPATH/bin go install ./cmd/app/main.go > > Doesn't change anything. Actually I'm realizing that even without go > modules but with

Re: [go-nuts] What does `go install path/to/main.go` do with GO111MODULE=on?

2021-03-10 Thread Matt Mueller
Thanks for the message! Unfortunately, GOBIN=$GOPATH/bin go install ./cmd/app/main.go Doesn't change anything. Actually I'm realizing that even without go modules but with $GOPATH this never installed anywhere: GOBIN=$GOPATH/bin GO111MODULE=off go install ./cmd/testinstall/main.go You have

Re: [go-nuts] What does `go install path/to/main.go` do with GO111MODULE=on?

2021-03-10 Thread Kurtis Rader
Do you have environment var GOBIN set? Check the output of "go env GOBIN". See https://golang.org/ref/mod#mod-commands. On Wed, Mar 10, 2021 at 2:59 PM Matt Mueller wrote: > Hey folks, > > I'm trying to install a command inside a module globally on my system so > that I can use that binary

[go-nuts] What does `go install path/to/main.go` do with GO111MODULE=on?

2021-03-10 Thread Matt Mueller
Hey folks, I'm trying to install a command inside a module globally on my system so that I can use that binary elsewhere. During the $GOPATH era this worked something like this: go install cmd/app/main.go // installed app to $GOPATH/bin Unfortunately that doesn't seem to work anymore. It

[go-nuts] Re: [ANN] New german translations

2021-03-10 Thread Uli Kunitz
The authority on German Orthography, duden.de, recommends the writing Code but allows Kode as well. On Wednesday, March 10, 2021 at 7:34:05 PM UTC+1 Haddock wrote: > I don't know about using the word "Kode" in German. I've never seen it > different than with c as in English. Whatever, you took

[go-nuts] Re: [ANN] New german translations

2021-03-10 Thread Haddock
I don't know about using the word "Kode" in German. I've never seen it different than with c as in English. Whatever, you took a big effort and did a very nice job. Thank you! HaWe schrieb am Dienstag, 9. März 2021 um 17:26:48 UTC+1: > Just finished german translation of the two new tutorials:

[go-nuts] [security] Go 1.16.1 and Go 1.15.9 are released

2021-03-10 Thread Katie Hockman
Hi gophers, We have just released Go 1.16.1 and Go 1.15.9 to address recently reported security issues. We recommend that all users update to one of these releases (if you’re not sure which, choose Go 1.16.1). - encoding/xml: infinite loop when using xml.NewTokenDecoder with a custom

[go-nuts] Re: Windows Event logs

2021-03-10 Thread jake...@gmail.com
I can't help directly, but since no one else has responded, maybe this will help. The windows API call OpenEventLogW() would be the first step. Looking on Github for examples of Go code that makes this call ( https://github.com/search?p=2=OpenEventLogW+language%3AGo=Code), you may be able to