Hacker GitHub

← All repos

uber-go/nilaway

View on GitHub ↗ ★ 3,929 Go

Static analysis tool to detect potential nil panics in Go code

13 mentions on Hacker News by 13 people: 1 story, 12 comments · first 2023-11-18 · latest 2026-09-15

Mentions per year 13 mentions · busiest year 2025 (5)
20082026
  1. Sure it does: https://github.com/uber-go/nilaway Not exactly the same solution as JSpecify, since it doesn't rely on annotations, but it's also more ergonomic. I'm not comparing this to "null-restricted types", since that's a draft JEP…
    comment by unscaled · 2026-09-15 · in Java 27
  2. This does exist, actually. https://github.com/uber-go/nilaway
    comment by jchw · 2026-06-21 · in Excessive nil pointer checks in Go
  3. …not, which I would argue is one of the advantages to null-annotating Java code with JSpecify. [0] https://github.com/uber-go/nilaway
    comment by retrodaredevil · 2026-06-21 · in Excessive nil pointer checks in Go
  4. ▲ 2
    Show HN: Soppo – A Golang superset that adds enums, pattern matching, nil safety
    story by beanpup_py · 2025-12-03 · 0 comments
  5. > better nulability checks In development: https://github.com/uber-go/nilaway
    comment by trenchpilgrim · 2025-11-15 · in Go's Sweet 16
  6. …statements. Then it just might be perfect. At work we use Uber’s NillAway, so that helps bit. https://github.com/uber-go/nilaway Though actually having the type system handle it would be nicer.
    comment by MichaelNolan · 2025-11-14 · in Go's Sweet 16
  7. …a lot of Go people are downright hostile towards this solution :) You could also try your luck with https://github.com/uber-go/nilaway
    comment by Mawr · 2025-03-10 · in Rust vs. Go: Battle for the Back End
  8. https://github.com/uber-go/nilaway
    comment by KingOfCoders · 2025-03-05 · in The cost of Go's panic and recover
  9. …easily, but you can't force libraries that you rely on to use that type). The best we have now is https://github.com/uber-go/nilaway and it's improving with time. It does static analysis, but it has a very difficult job to do, so right now…
  10. …Uber made tooling for languages with broken type systems * https://github.com/uber/NullAway * https://github.com/uber-go/nilaway
    comment by jflwyasdf · 2024-04-28 · in What if null was an Object in Java?
  11. …humble enough to admit fault for the null pointer problem. The Go devs do not have such humility. https://github.com/uber-go/nilaway
    comment by jtasdlfj234 · 2024-01-04 · in Go: What we got right, what we got wrong
  12. …common ones you are seeing. If you have a chance to file a couple issues (and haven't done so yet): https://github.com/uber-go/nilaway/issues We definitely have gotten some useful reports there already since the blog post! We are aware of…
    comment by lazaroclapp · 2023-11-18 · in NilAway: Practical nil panic detection for Go
  13. The code: https://github.com/uber-go/nilaway
    comment by hardwaresofton · 2023-11-18 · in NilAway: Practical nil panic detection for Go