Skip to content

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

License

Notifications You must be signed in to change notification settings

reiver/go-streng

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages