Package streng provides a string option type, result type, and nullable type, for the Go programming language.
Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-streng
Here is how you would declare a string option type:
var stringOption streng.Option
Here is how you would declare a string result type:
var stringResult streng.Result
Here is how you would declare a string nullable type:
var nullableString streng.Nullable
If you want to use one of these types with the JSON data format, and in particular using the built-in "encoding/json"
package,
then you should use streng.Nullable
.