null is a Go library that provides nullable types for SQL values.
The library solves the problem of handling NULL values from SQL databases in Go. Standard Go types cannot represent SQL nullability directly—a string is always a string, never null. null wraps primitive types to track both a value and whether that value is null, allowing developers to distinguish between a zero value and an actual NULL from the database. The approach is straightforward: the library exports nullable versions of common types used in SQL contexts.
The tool suits projects that need to work with SQL databases where nullable columns are common. It is most useful when you need to preserve the distinction between a column containing NULL and a column containing a zero or empty value. Developers working with ORMs or direct SQL queries in Go will find this particularly relevant. The library provides nullable variants for Bool, String, Float64, and Int64, covering the most frequently encountered SQL types.
The project shows minimal development activity. There are no recent commits, and the codebase appears to be in a stable, maintenance-only state with no active feature development or bug fixes being pursued.