google/uuid
View on GitHub ↗ ★ 6,152 Go
Go package for UUIDs based on RFC 4122 and DCE 1.1: Authentication and Security Services.
18 mentions on Hacker News by 17 people: 1 story, 17 comments · first 2020-02-24 · latest 2026-08-19
20082026
-
There have been committed 3 new features and a seemingly significant bug fix since the last release: https://github.com/google/uuid/compare/v1.6.0...HEAD If the library just existed as a correct implementation of the RFC without bugs or…
comment by mort96 · 2026-03-07 · in UUID package coming to Go standard library -
…it hasn't had a release since 2024. Indeed, there's an open issue from June 2025 asking about it: https://github.com/google/uuid/issues/194
comment by da_chicken · 2026-03-07 · in UUID package coming to Go standard library -
> You're not going to try and extract a timestamp from a uuid. So, random library: https://pkg.go.dev/github.com/google/uuid#UUID.Time > Time returns the time in 100s of nanoseconds since 15 Oct 1582 encoded in uuid. The time is only…
comment by ncruces · 2025-12-15 · in Avoid UUID Version 4 Primary Keys in Postgres -
…can't edit my post, but in any case; the point being: it would be nice if import statements are closer to "github.com/google/uuid@YYYY-MM-DD" or in this case you can pass a date to version: "YYYY-MM-DD" and the library would run the uglier…
comment by mkhalil · 2025-09-04 · in Neovim Pack -
…it won't escape. Trivial example but it applies to real-world programs: > cat main.go package main import "github.com/google/uuid" func main() { _ = foo(uuid.NewString()) } func foo(s any) string { switch s := s.(type) { case string: _ =…
comment by coxley · 2025-07-22 · in Go allocation probe -
…was already taken by Google. This shouldn't really matter as your import paths are obviously different. `github.com/google/uuid` and `github.com/sdrapkin/guid` can happily coexist. Any file/codebase importing both (which would ideally be…
comment by saclark11 · 2025-07-08 · in Fast cryptographically safe GUID generator for Go -
Ah cool, the note here is also interesting: https://pkg.go.dev/github.com/google/uuid#EnableRandPool
comment by maxmcd · 2025-07-08 · in Fast cryptographically safe GUID generator for Go -
Much faster (~10x) than standard github.com/google/uuid package I'm interested in feedback from the HN community.
comment by sdrapkin · 2025-07-08 · in Fast cryptographically safe GUID generator for Go -
…16k stars - https://github.com/gorilla/mux 21k stars - https://github.com/spf13/pflag 2.6k stars - https://github.com/google/uuid 5.6k starts Many others have just a few dependencies.
comment by hu3 · 2025-05-09 · in Rust’s dependencies are starting to worry me -
…doesn't have to be private, it just has to be a constructor. For example take this library: https://github.com/google/uuid It represents UUIDs as `type UUID [16]byte`. It would be trivial to circumvent a constructor: `var uuid UUID`. Go…
comment by dgb23 · 2024-07-22 · in Parse, Don't Validate (2019) -
…tells you nothing about the owner. It might be Google, or it might be me, who squatted the name early on. "github.com/google/uuid" would be much difficult to squat. Also, it tells you that this comes from the Google user in GitHub, which…
comment by j1elo · 2023-11-12 · in Go modules and the domain expiry problem -
…github.com in their go files. https://www.digitalocean.com/community/tutorials/importing-p... >import "github.com/google/uuid" This should be just "google/uuid".
comment by imtringued · 2023-11-12 · in Go modules and the domain expiry problem -
…to detect leaks And then for GUID generation we use https://github.com/oklog/ulid instead of https://github.com/google/uuid/
comment by mparnisari · 2023-05-23 · in How to start a Go project in 2023 -
…have to deal with such weird specific knowledge of its semantics. But alas I always do. [1] https://github.com/google/uuid EDIT: This issue also affects encoding/json. You can see it in this playground for yourself!…
comment by whateveracct · 2020-02-28 · in I Want Off Mr. Golang's Wild Ride -
…tables' primary keys), how would you best do it? The answer may surprise you :) [1] https://pkg.go.dev/github.com/google/uuid?tab=doc
comment by whateveracct · 2020-02-24 · in Rob Pike – Simplicity is Complicated [video]