package anynil
import "github.com/jackc/pgx/v5/internal/anynil"
Index ¶
Functions ¶
func Is ¶
Is returns true if value is any type of nil. e.g. nil or []byte(nil).
func Normalize ¶
Normalize converts typed nils (e.g. []byte(nil)) into untyped nil. Other values are returned unmodified.
func NormalizeSlice ¶
func NormalizeSlice(s []any)
NormalizeSlice converts all typed nils (e.g. []byte(nil)) in s into untyped nils. Other values are unmodified. s is mutated in place.
Source Files ¶
- Version
- v5.5.3
- Published
- Feb 3, 2024
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 3 hours ago –
Tools for package owners.