Categorygithub.com/euskadi31/go-std
repositorypackage
2.0.0-beta.2+incompatible
Repository: https://github.com/euskadi31/go-std.git
Documentation: pkg.go.dev

# README

Go Standard Library Last release

Go Report Card

BranchStatusCoverage
masterBuild StatusCoveralls

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.