Archive · Week 34 · Aug 17 – 23, 2026from 7 items
This week the Go team released three new point releases—go 1.25.14, go 1.26.7, and the major go 1.27.0—alongside a blog post announcing the 1.27 release and its new features. The point releases contain fixes to the net/http package, while go 1.27 introduces several language and standard‑library enhancements.
Worth knowingecosystem
go1.27.0 released
- What changed
- The 1.27 release adds generic methods, a new encoding/json/v2 package, a uuid package, faster memory allocation, goroutine leak profiles, and more.
- Production impact
- The source does not say.
- Try it
- Run
go versionto confirm you are on 1.27 and explore the new packages in the standard library. - Source
- go.dev/blog/go1.27
Explain it
Understand it, then run it
Go 1.27 adds a new feature called *generic methods*. Before this release, a type could only have methods that accepted a fixed set of parameter types. Now a method can be written once and used with any integer type. The change is shown in the math/rand/v2 package, where the Rand type gets a method N that works for int, int32, int64, and any other integer type.
Worth knowingstdlib
go1.26.7 released
- What changed
- go1.26.7 includes fixes to the net/http package.
- Production impact
- The source does not say.
- Try it
- Upgrade to 1.26.7 and run your HTTP server to see if any previously reported bugs are resolved.
- Source
- go.dev/doc/devel/release#go1.26.7
Worth knowingstdlib
go1.25.14 released
- What changed
- go1.25.14 includes fixes to the net/http package.
- Production impact
- The source does not say.
- Try it
- Upgrade to 1.25.14 and test your HTTP client code for stability.
- Source
- go.dev/doc/devel/release#go1.25.14
Worth knowingstdlib
go1.25.14 released (net/http fixes)
- What changed
- go1.25.14 includes fixes to the net/http package.
- Production impact
- The source does not say.
- Try it
- Run your existing HTTP tests to verify the fixes.
- Source
- go.dev/doc/devel/release#go1.25.14
Explain it and run it
Understand it, then run it
The Go 1.25.14 release fixes bugs in the net/http package. net/http is the standard library package that handles HTTP clients and servers. Before this release, some edge cases in request handling could cause crashes or incorrect responses. The update corrects those issues, so code that uses net/http now behaves reliably.
Run it now
// This program demonstrates a simple use of the net/http package.
// It builds an HTTP GET request and prints the request URL and method.
// The program does not perform a network call, so it runs safely in a sandbox.
package main
import (
"fmt"
"net/http"
)
func main() {
// Construct a new GET request to a placeholder URL.
req, err := http.NewRequest("GET", "https://example.com", nil)
if err != nil {
// In real code you would handle the error appropriately.
fmt.Println("Error creating request:", err)
return
}
// Print the request details to show that net/http is working.
fmt.Println("Method:", req.Method)
fmt.Println("URL:", req.URL.String())
}
What it printed when we ran it on Go 1.27.1
Method: GET URL: https://example.com
Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.
Worth knowingstdlib
go1.26.7 released (net/http fixes)
- What changed
- go1.26.7 includes fixes to the net/http package.
- Production impact
- The source does not say.
- Try it
- Run your existing HTTP tests to verify the fixes.
- Source
- go.dev/doc/devel/release#go1.26.7
Explain it
Understand it, then run it
The Go 1.26.7 release brings a set of corrections to the net/http package. These fixes address bugs that could affect how HTTP requests are handled or how responses are sent. If you run a web server or make HTTP calls with the standard library, the behavior you see should now match the intended design. No new functions or types are added; the package API remains the same.
Exercise
Exercise
Create a Counter type that holds an integer value. Add a generic method Add[T int | uint](n T) that adds the supplied number to the counter’s value and returns the new value. In main, create a counter, add 5 (an int) and 10 (a uint), and print the final value.
package main
import "fmt"
type Counter struct {
value int
}
// TODO: add a generic Add method here
func main() {
c := Counter{}
// Add an int
c.Add(5)
// Add a uint
c.Add(uint(10))
fmt.Println("final value:", c.value)
}
Show a solution
package main
import "fmt"
type Counter struct {
value int
}
// Add adds n to the counter’s value and returns the new value.
// It works for both int and uint types.
func (c *Counter) Add[T int | uint](n T) int {
c.value += int(n)
return c.value
}
func main() {
c := Counter{}
c.Add(5) // int
c.Add(uint(10)) // uint
fmt.Println("final value:", c.value) // prints 15
}
What it printed when we ran it on Go 1.27.1
final value: 15
Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.
The 60-second version
Hello, this week the Go team delivered three new releases. The major go 1.27.0 brings generic methods, a new JSON package, a UUID package, faster memory allocation, and goroutine leak profiles. Alongside that, the point releases go 1.25.14 and go 1.26.7 ship fixes to the net/http package. These updates keep the language evolving and the standard library robust for production workloads.
Written by gpt-oss-20b · claims checked against the sources · archive, not individually reviewed