What we know already
Andreas Linz—klingt.net
2019-11-14T19+01:00
go command to skip certificate validation or accept HTTPGOINSECURE=localhost go get foo/bargo.mod specifies Go 1.14 and a /vendor folder present then commands will default to using vendoring-mod=modgo test -v (or t.Log) is now streamed instead of being presented at the end of all testsdeferThis release improves the performance of most uses of defer to incur almost zero overhead compared to calling the deferred function directly. As a result, defer can now be used in performance-critical code without overhead concerns.
The page allocator is more efficient and incurs significantly less lock contention at high values of GOMAXPROCS. This is most noticeable as lower latency and higher throughput for large allocations being done in parallel and at a high rate.
Discord should consider to reevaluate their switch from Go to Rust 😉.
hash/maphashstring/[]byte to 64-bit integerscrypto/tlsGODEBUG anymoreioutil.TempDirioutil.TempDir allows to specify a naming pattern (like TempFile)rm -rf /tmp/my-app-*)cmd/vet warn about int to string conversionints with runesstring(10) is "\n" not "10"unicode/utf8 provides runeToString (play)interface-interface assertionCurrently, Go permits any type assertion x.(T) (and corresponding type switch case) where the type of x and T are interfaces.
cmd/vet will warn about this (will be a compile error later)The primary goals for Go remain package and version management, better error handling support, and generics.
f, err := os.Open(filename)
if err != nil {
return …, err // zero values for other results, if any
}
// with try
f := try(os.Open(filename))we are also making progress on the generics front (more on that later this year).