Golang News http://golangnews.com Jobs, Code, Videos and News for Go hackers - everything about the go programming language Mon, 03 Feb 2020 19:52:00 +0000 Why go was the right choice for cockroachdb #data #db 6 points posted by drogo https://www.cockroachlabs.com/blog/why-go-was-the-right-choice-for-cockroachdb 1607 Mon, 23 Jan 2017 13:38:00 +0000 Upgrading CockroachDB from dep to Go Modules 5 points posted by kenny https://www.cockroachlabs.com/blog/dep-go-modules/ 4426 Tue, 11 Aug 2020 07:44:00 +0000 Rounding implementations in go Rounding in Go is hard to do correctly. That is, given a <i>float64</i>, truncate the fractional part (anything right of the decimal point), and add one to the truncated value if the fractional part was &gt;= 0.5. This problem doesn’t come up often, but it does enough that as of this writing, the second hit on Google for <i>golang round</i> is a <a href="https://github.com/golang/go/issues/4594">closed issue</a> from the Go project, which declined to add a Round function to the math package. That issue also includes many community contributions about ways to round. 5 points posted by gopher https://www.cockroachlabs.com/blog/rouding-implementations-in-go 2379 Fri, 07 Jul 2017 08:38:00 +0000 Enriching log messages using go contexts 5 points posted by gopher https://www.cockroachlabs.com/blog/enriching-log-messages-using-go-contexts 1655 Wed, 01 Feb 2017 14:23:00 +0000 Why are my Go executable files so large? | Cockroach Labs Overview I built some tooling to extract details about the contents of a Go executable file, and a small D3 application to visualize this information interactiv 4 points posted by gopher https://www.cockroachlabs.com/blog/go-file-size 4228 Sun, 29 Dec 2019 19:06:00 +0000 Retraction: My Go Executable Files Are Still Large 2 points posted by gopher https://www.cockroachlabs.com/blog/go-file-size-update 4582 Tue, 20 Apr 2021 11:24:00 +0000