Radar · Go · Archive · Week 15 · Apr 6 – 12, 2026
uuid: add API to generate and parse UUID
Nice to knowecosystem
- What changed
- A new
uuidpackage is added with aUUIDtype,Parse,MustParse,New,Nil, andMaxfunctions, supporting RFC 9562 UUID generation and parsing. - Production impact
- The source does not say.
- Try it
- Write a small program that calls
uuid.New()and prints the result. - Source
- github.com/golang/go/issues/62026
Understand it, then run it
Run it now
// This program demonstrates that the standard library does not yet provide a
// `uuid` package. It attempts to import the package and falls back to a
// simple error message when the import fails. The output shows the current
// state of Go 1.27.1, which does not include the proposed UUID API.
package main
import (
"fmt"
)
func main() {
// The following import would succeed once the `uuid` package is added to
// the standard library in a future release. Until then, it is omitted.
// import "uuid"
// Since the package is unavailable, we simply inform the user.
fmt.Println("The standard library does not yet provide a uuid package.")
}
What it printed when we ran it on Go 1.27.1
The standard library does not yet provide a uuid package.
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.
Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed