From bd2ece70421cb0e04e5f5258c9c56debc6be979b Mon Sep 17 00:00:00 2001 From: Greg Date: Sun, 31 Aug 2014 17:30:01 +0900 Subject: [PATCH] change README formatting --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index f4926af..0edf050 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,11 @@ null is a library with opinions on how to deal with nullable SQL and JSON values There are two packages, `null`, and `nuller`. + Types in `null` are treated like zero values in Go: blank string input will produce a null `null.String`, and null Strings will JSON encode to `""`. If you need zero and null treated the same, use these. + Types in `nuller` will only be considered null on null input, and will JSON encode to `null`. If you need zero and null be considered separate values, use these. + All types implement `sql.Scanner`, so you can use this library in place of `sql.NullXXX`. ### null.String