Skip to content

xofym/go-std

 
 

Repository files navigation

Go Standard Library Last release

Go Report Card

Branch Status Coverage
master Go Coveralls

go-std is a library with reasonable options for dealing with nullable SQL and JSON values.

All types implement sql.Scanner and driver.Valuer, so you can use this library in place of sql.NullXXX. All types also implement: encoding.TextMarshaler, encoding.TextUnmarshaler, json.Marshaler, json.Unmarshaler and fmt.Stringer.

Types

  • std.Bool: Nullable bool
  • std.Float: Nullable float64
  • std.String: Nullable string
  • std.Int: Nullable int64
  • std.Uint: Nullable uint64
  • std.Time: Nullable Time
  • std.DateTime: Nullable Time with ISO8601 format
  • std.Date: Nullable Time with ISO8601 (yyyy-mm-dd) format

License

go-std is licensed under the MIT license.

About

Collections of basic types for Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.8%
  • Makefile 1.2%