https://github.com/euskadi31/go-std
Collections of basic types for Go
https://github.com/euskadi31/go-std
go golang golang-library json sql
Last synced: about 1 month ago
JSON representation
Collections of basic types for Go
- Host: GitHub
- URL: https://github.com/euskadi31/go-std
- Owner: euskadi31
- License: mit
- Created: 2017-03-28T11:14:02.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2025-05-06T05:28:16.000Z (11 months ago)
- Last Synced: 2025-06-14T05:03:08.115Z (10 months ago)
- Topics: go, golang, golang-library, json, sql
- Language: Go
- Size: 85 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Go Standard Library 
[](https://goreportcard.com/report/github.com/euskadi31/go-std)
| Branch | Status | Coverage |
| ------ | --------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| master | [](https://github.com/euskadi31/go-std/actions/workflows/go.yml) | [](https://coveralls.io/github/euskadi31/go-std?branch=master) |
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](LICENSE.md).