Re: [go-nuts] Re: Weird behavior of a nil check after variable redeclaration

2017-12-22 Thread Vincent Rischmann
Thanks, that explains it. On Fri, Dec 22, 2017, at 6:28 PM, Volker Dobler wrote: > See https://golang.org/doc/faq#nil_error > > V. > > On Friday, 22 December 2017 17:37:40 UTC+1, Vincent Rischmann wrote:>> Hello, >> >> while refactoring some code I encoun

[go-nuts] Weird behavior of a nil check after variable redeclaration

2017-12-22 Thread Vincent Rischmann
Hello, while refactoring some code I encountered something strange regarding redeclarations. Here is an example: https://play.golang.org/p/b7Bp2w2fWwk Somehow after redeclaring err when calling doIt, err is apparently not nil, yet the functions never return anything other than nil. If I use a

[go-nuts] redeclaration in runtime/utf8.go after installing Go 1.8 on Windows

2017-02-18 Thread Vincent Rischmann
Hi, I'm on Windows, I had Go 1.7.4 installed from the MSI installer. Today I decided to upgrade to Go 1.8, so I downloaded the new MSI, ran it and that was it. However, first package I tried to install I got the following errors: G:\Gopath\src\github.com\google> go get -u -v github.com/vris

Re: [go-nuts] Re: Explosion in memory usage when compiling a big file

2017-01-09 Thread Vincent Rischmann
Thanks for the responses. I took a look at the generated code and go-bindata does in fact use the form "var _data = []byte(`my giant string`)". But there's something strange happening: I can't reproduce the problem on my Macbook Pro. It compiles just fine here. On Mon, Jan 9, 2017, at 12:5

[go-nuts] Explosion in memory usage when compiling a big file

2017-01-08 Thread Vincent Rischmann
Hi, so I was trying to embed JS and HTML assets in a Go file using go-bindata and ended up with a Go file of 4Mib, and I noticed compiling it consumes all my system's memory. I'm on Windows and using the resource monitor I can see compile.exe memory usage grow to more than 15Gib in a couple of

Re: [go-nuts] Re: Deleting the /r/golang subreddit

2016-11-25 Thread Vincent Rischmann
> It's a wretched hive of scum and villainy. The Go subreddit was the only > thing similar to human and it is downright painful most of the time. Way to go insulting everyone on Reddit. I'm neither scum or a "villain". I also spend a lot of time on /r/golang and it's nowhere near painful, I have