Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1020 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 1020 Bytes

SQLNull

go-version-badge test-pipeline-badge test-coverage-badge

A dead simple one stop solution to pass your database types directly to your JSON REST-API.


This package provides wrapper types for all Null* types of the database/sql which implement the Marshaler and Unmarshaler interface of the encoding/json package.

Usage

  1. Get the package
go get github.com/gkits/nullsql@latest
  1. Import the package
import "github.com/gkits/nullsql"
  1. Start coding...

Limitations

Due to the internal implementation of the encoding/json package you can sadly not omit the fields with value null using the omitempty tag.