String is a nullable string. It supports SQL and JSON serialization. It will marshal to null if null. Blank string input will be considered null.
| 33 | // String is a nullable string. It supports SQL and JSON serialization. |
| 34 | // It will marshal to null if null. Blank string input will be considered null. |
| 35 | type String struct { |
| 36 | sql.NullString |
| 37 | } |
| 38 | |
| 39 | // StringFrom creates a new String that will never be blank. |
| 40 | func StringFrom(s string) String { |
no outgoing calls