Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 502 Bytes

File metadata and controls

12 lines (8 loc) · 502 Bytes

NullString

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

Properties

Name Type Description Notes
string str [optional]
valid bool [optional]

[Back to Model list] [Back to API list] [Back to README]