Category: Golang

Posted in Golang

net/url: issue with encoding spaces

by tech163@sliceone.com: What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. 1. http://play.golang.org/p/Hal0slZDI9 What is the expected output?…

Continue Reading
Posted in Golang

math: add a Round function

by bunge@google.com: Would it be possible to add a math.Round(n float64, digits uint) float64 function that rounds a floating point number to the specified number…

Continue Reading
Posted in Golang

net/http: add built-in graceful shutdown support to Server

by patrick.allen.higgins: http.Server only offers flavors of Serve() without a way to shut them down. Closing the listener should make the server stop, but there…

Continue Reading
Posted in Golang

encoding/json: custom format for time.Duration

Feature request: JSON struct tags could be enhanced to provide the notion of time units since the parser currently assumes everything is ns, causing workarounds…

Continue Reading
Posted in Golang

io/ioutil: predictable suffix for TempFile

Right now ioutil.TempFile creates files with a given prefix as the basename. This is fine for the usual /tmp usage, where all the files in…

Continue Reading
Posted in Golang

testing: add t.Helper to make file:line results more useful

Currently the caller level of T’s decorate function is fixed _, file, line, ok := runtime.Caller(3) // decorate + log + public function. When wrapping…

Continue Reading
Posted in Golang

proposal: runtime: optionally allow callers to intern strings

Duplicate strings can waste memory and cause lots of allocations, but may be cheaper at allocation time. Interning strings has a lookup cost, but can…

Continue Reading
Posted in Golang

encoding/json: performance slower than expected

by reid.write: STR: 1. clone the git repository here: git@github.com:tarasglek/jsonbench.git 2. Generate some sample JSON data using the instructions in the README 3. Run the…

Continue Reading
Posted in Golang

crypto/tls: does not support renegotiation

We would like to use net/http to talk to Microsoft Azure services, but their servers force a TLS renegotiation, which crypto/tls does not currently support.

Continue Reading
Posted in Golang

proposal: spec: export uncased identifiers like 日本語

In go (now v1.1.1), an identifier is exported only if it starts with a character in Unicode class “Lu” (uppercase letter). The feature works fine…

Continue Reading