Categorygithub.com/reiver/go-streng
repositorypackage
0.0.0-20190725032643-28ae30527a91
Repository: https://github.com/reiver/go-streng.git
Documentation: pkg.go.dev

# README

go-streng

Package streng provides a string option type, result type, and nullable type, for the Go programming language.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-streng

GoDoc

Option Types

Here is how you would declare a string option type:

var stringOption streng.Option

Result Types

Here is how you would declare a string result type:

var stringResult streng.Result

Nullable Types

Here is how you would declare a string nullable type:

var nullableString streng.Nullable

JSON Data Format

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.