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
20082026
-
This does exist, actually. https://github.com/uber-go/nilaway
comment by jchw · 2026-06-21 · in Excessive nil pointer checks in Go -
…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 -
> better nulability checks In development: https://github.com/uber-go/nilaway
comment by trenchpilgrim · 2025-11-15 · in Go's Sweet 16 -
…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 -
…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 -
https://github.com/uber-go/nilaway
comment by KingOfCoders · 2025-03-05 · in The cost of Go's panic and recover -
…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…
comment by lordofgibbons · 2024-12-07 · in Union types ('enum types') would be complicated in Go -
…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? -
…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 -
…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 -
The code: https://github.com/uber-go/nilaway
comment by hardwaresofton · 2023-11-18 · in NilAway: Practical nil panic detection for Go