[go-nuts] [ANN] Olric v0.4.0 is out. Distributed cache and in-memory key/value data store. It can be used both as an embedded Go library and as a language-independent service.

2021-08-17 Thread Burak Sezer
*What is Olric?* Distributed cache and in-memory key/value data store. It can be used both as an embedded Go library and as a language-independent service. With Olric, you can instantly create a fast, scalable, shared pool of RAM across a cluster of computers. See the repository on GitHub to g

[go-nuts] Re: Go 1.17 is released

2021-08-17 Thread ben...@gmail.com
Thank you, Go team, for all your work on this! I (and I think many others!) love all these behind-the-scenes changes that make our lives better. I went to look for that 5% performance boost in my GoAWK interpreter (due to the new register-based calling convention), and found a 38% improvement i

Re: [go-nuts] New to Unit Testing - Testing HTTP requests and response codes

2021-08-17 Thread Fabrice Vaillant
On 17/08/2021 22:24, Amit Saha wrote: On 18 Aug 2021, at 5:47 am, 'Beginner' via golang-nuts mailto:golang-nuts@googlegroups.com>> wrote: Hey, so I am pretty new to Golang and Unit tests as a whole. Right now I am trying to create some tests for this section of code. I want to test in t

Re: [go-nuts] New to Unit Testing - Testing HTTP requests and response codes

2021-08-17 Thread Amit Saha
> On 18 Aug 2021, at 5:47 am, 'Beginner' via golang-nuts > wrote: > > Hey, so I am pretty new to Golang and Unit tests as a whole. Right now I am > trying to create some tests for this section of code. I want to test in the > case of an unexpected HTTP response but I don't know how or where

[go-nuts] New to Unit Testing - Testing HTTP requests and response codes

2021-08-17 Thread 'Beginner' via golang-nuts
Hey, so I am pretty new to Golang and Unit tests as a whole. Right now I am trying to create some tests for this section of code. I want to test in the case of an unexpected HTTP response but I don't know how or where to begin. I am new to mocking and for my previous tests created mocks to test

Re: [go-nuts] Various questions about posts from The Go Blog

2021-08-17 Thread Ian Lance Taylor
On Tue, Aug 17, 2021 at 9:13 AM Kamil Ziemian wrote: > > I'm now rereading post "Constants" and in the last section "Numbers" there is > a text > > BEGINNING > Therefore, although they have different implicit default types, written as > untyped constants they can be assigned to a variable of any

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

2021-08-17 Thread 'Jay Conrod' via golang-nuts
Ideally `go mod verify` would help in this situation, but it only compares the contents of go.sum against the module cache, and if they're consistent with each other but not the outside world, it won't report an error. I've opened #47752 for this. On Tue

[go-nuts] Various questions about posts from The Go Blog

2021-08-17 Thread Kamil Ziemian
Hello, I'm now rereading post "Constants" and in the last section "Numbers" there is a text BEGINNING Therefore, although they have different implicit default types, written as untyped constants they can be assigned to a variable of any integer type: var f float32 = 1 var i int = 1.000 var u u

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

2021-08-17 Thread 'Jay Conrod' via golang-nuts
I think the problem is in go.sum. If it already contains an incorrect sum for a module version, the go command will report a security error when downloading that version (if the download has a different sum) or when using that version (if the cached version had a different sum that appeared to be v

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

2021-08-17 Thread 'Jay Conrod' via golang-nuts
If you are using submodules, the best way to do that is to treat each modules as a separately versioned, releasable unit. So each module has a "require" directive for other modules it needs at the minimum usable version (managed with 'go get' or 'go mod tidy'). You can tag versions for each submodu

[go-nuts] Ongoing Dummy Projects ?

2021-08-17 Thread sameer karjatkar
Hi , Would like to contribute to an ongoing Prototype or dummy project if any . Thx, Sameer K -- 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+unsubs

[go-nuts] Share your thoughts about Go’s built-in fuzzing

2021-08-17 Thread 'Jay Conrod' via golang-nuts
Hi, earlier this year the Go Fuzzing Team released a public preview of built-in fuzzing support in Go. Now that folks have had some time to experiment with it, we’d love to learn more about what’s working well and what could be improved. If you’ve tried out Go’s

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

2021-08-17 Thread Sean Liao
Where did you install `go` from and what's the output of `go env` for both versions? On Tuesday, August 17, 2021 at 8:25:06 AM UTC+2 Igor Chubin wrote: > Thank you for your answers! > > This is definitely not in the cache, because the problem exists everywhere, > including new containers and new

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

2021-08-17 Thread Milad Poshtdari
Hi Karlovsky, Thank you, I guess it would be helpful for me. I'll check it out! Thanks again, Milad On Tue, Aug 17, 2021 at 4:11 PM Karlovsky Alexey wrote: > Hi, > > I find very interesting and helpful this book: > https://go101.org/article/101.html > > From it's description: > *Go 101 is a b

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

2021-08-17 Thread Karlovsky Alexey
Hi, I find very interesting and helpful this book: https://go101.org/article/101.html >From it's description: *Go 101 is a book focusing on Go syntax/semantics and all kinds of runtime related things (Go 1.17 ready) and tries to help gophers gain a deep and thorough understanding of Go. This book

Re: [go-nuts] sql.Row doubt

2021-08-17 Thread Gregor Best
FWIW, things like `SELECT * FROM ...` are in my opinion a code smell: there are usually some (implicit) expectations on which columns will be returned in what order that'll break horribly if someone two departments removed decides "this table needs another column". In my experience, it's almos