Lightlines
By samber

golang-safety

samber36.7k installs

Catch nil panics and silent bugs in Go code.

What it does

Guides defensive Go coding to prevent panics, accidental bugs, and silent data corruption.

When to use it

Use when reviewing Go code for nil safety, numeric conversion overflow, or resource lifecycle, or designing safe zero values.

How to use it

It changes how the agent writes and reviews Go code by applying defensive rules for types, nil values, shared memory, and resource handling.

What you provide

  • An existing project

Latest review

What you need · 1

Declares the go binary as a required tool.


Access · 0

No additional actions listed.