Description

NullString represents a string that may be null. NullString implements the Scanner interface so it can be used as a scan destination:

var s NullString
err := db.QueryRow("SELECT name FROM foo WHERE id=?", id).Scan(&s)
...
if s.Valid {
   // use s.String
} else {
   // NULL value
}

NullString is referenced in 588 repositories

github.com/golang/go github.com/h3poteto/fascia github.com/kpawlik/exportms

...