[go-nuts] how golang stores variables in the computer’s memory?

2021-08-16 Thread Miraddo
Hello, Yesterday, I had an awesome interview, and I found I don't know anything about `Golang` in deep, so I decided to learn more about the compiler and memory and every part of `Golang` in deep. I guess I had a lot of questions :) Do you have any reference to know, How `Golang` stores'

Re: [go-nuts] Go mod ignoring project sub-modules

2021-08-16 Thread Nicholas Bunn
Thanks for the prompt response, Jay! And thanks for clearing that up, it's good to know that it's intended to run as such. For the purpose and scale of this project, it's a bit easier to keep everything together and use sub-modules where I can (this hasn't been an issue thus far) so I'd like to

Re: [go-nuts] go.sum security error

2021-08-16 Thread Igor Chubin
Thank you for your answers! This is definitely not in the cache, because the problem exists everywhere, including new containers and new cloud instances. I can test it with 1.14 and 1.15 too; I don't think that the problem is specific for 1.13 only. You say, that the security error is correct:

Re: [go-nuts] Re: How to retrieve content of file uploaded using "curl --upload-file ..." way in Go HttpServer

2021-08-16 Thread Roland Müller
Hello, Am Mo., 16. Aug. 2021 um 19:11 Uhr schrieb Kannan S : > messageId := r.URL.Query()["id"][0] > out, err := os.Create("./upload/" + messageId + ".mp3") > > in your original example file name is retrieved from the request.URL.Path rather than from an variable named 'id' using request.URL.Qu

[go-nuts] How to install previous release of protobuf on windows?

2021-08-16 Thread Igor Gelin
How to install previous release of protobuf on windows? -- 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 it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this dis

[go-nuts] Go 1.17 is released

2021-08-16 Thread Michael Knyszek
Hello gophers, We just released Go 1.17 To find out what has changed in Go 1.17, read the release notes: https://golang.org/doc/go1.17 You can download binary and source distributions from our download page: https://golang.org/dl/ If you have Go installed already, an easy way to try go1.17 is b

Re: [go-nuts] Go mod ignoring project sub-modules

2021-08-16 Thread 'Jay Conrod' via golang-nuts
Hi Nic, This is actually working as intended, though I don't think we've adequately documented it. I've sent CL 342531 to mention this in the reference documentation. In short though, files in a subdirectory that contains a go.mod file are c

Re: [go-nuts] go.sum security error

2021-08-16 Thread 'Jay Conrod' via golang-nuts
This doesn't seem like a problem with Go versions. The security error is correct. It looks like the module author tagged v1.1.1 with this go.mod file then changed the tag to point to a different commit with this file

Re: [go-nuts] go.sum security error

2021-08-16 Thread Ian Lance Taylor
On Mon, Aug 16, 2021 at 9:11 AM Igor Chubin wrote: > > When I generate `go.sum` with go 1.16, and try to build it with go of a > different version (1.13 in my case), I get `SECURITY ERROR`: > > ``` > verifying github.com/tredoe/osutil@v1.1.1/go.mod: checksum mismatch > downloaded: h1:fx79htI3WZA9

[go-nuts] Go mod ignoring project sub-modules

2021-08-16 Thread Nicholas Bunn
Hi all, Hoping someone can give me a bit of assistance here. I'm busy refactoring a gRPC project of mine so that all proto files are generated into a single, "protoFile" directory, instead of having the generated files living under the service's directory. My idea is to have the generated files

[go-nuts] Re: How to retrieve content of file uploaded using "curl --upload-file ..." way in Go HttpServer

2021-08-16 Thread Kannan S
messageId := r.URL.Query()["id"][0] out, err := os.Create("./upload/" + messageId + ".mp3") if err != nil { fmt.Fprintf(w, "Unable to create the file for writing. Check your write access privilege") return } i added this portion but i am getting an error while trying to upload a file

[go-nuts] go.sum security error

2021-08-16 Thread Igor Chubin
When I generate `go.sum` with go 1.16, and try to build it with go of a different version (1.13 in my case), I get `SECURITY ERROR`: ``` verifying github.com/tredoe/osutil@v1.1.1/go.mod: checksum mismatch downloaded: h1:fx79htI3WZA9Ep4jphLFq06l3iRDimfOWTrkKOz+OAA= go.sum: h1:wHEjPMepmXQXkZhf9