Hacker GitHub

← All repos

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

Mentions per year 18 mentions · busiest year 2025 (7)
20082026
  1. …uuid package [2]. Kubernetes project will be the first one [3] I guarantee it. [1] https://pkg.go.dev/github.com/google/uuid [2] https://go.dev/pkg/uuid [3] https://github.com/kubernetes/kubernetes/blob/2220c3853a2402... [4]…
    comment by guessmyname · 2026-08-19 · in Go 1.27
  2. I'm so glad the new uuid package landed - it's overdue but a very welcome addition! I've already replaced github.com/google/uuid with `uuid` in several projects
    comment by patabyte · 2026-08-19 · in Go 1.27
  3. 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…
  4. …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
  5. > 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…
  6. …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
  7. …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
  8. …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…
  9. Ah cool, the note here is also interesting: https://pkg.go.dev/github.com/google/uuid#EnableRandPool
  10. Much faster (~10x) than standard github.com/google/uuid package I'm interested in feedback from the HN community.
  11. …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.
  12. …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)
  13. ▲ 5
    UUIDs and the probability of being hit by a meteorite
    story by zdgeier · 2024-04-11 · 0 comments
  14. …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…
  15. …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
  16. …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
  17. …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
  18. …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]