https://github.com/dariubs/gorm-jsonb
gorm jsonb datatype
https://github.com/dariubs/gorm-jsonb
gorm gorm-datatype jsonb postgres
Last synced: about 2 months ago
JSON representation
gorm jsonb datatype
- Host: GitHub
- URL: https://github.com/dariubs/gorm-jsonb
- Owner: dariubs
- Created: 2021-10-19T08:03:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-27T09:27:55.000Z (over 4 years ago)
- Last Synced: 2025-06-19T02:41:30.442Z (about 1 year ago)
- Topics: gorm, gorm-datatype, jsonb, postgres
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
gorm jsonb
==========
[gorm](https://gorm.io) jsonb datatype for postgres
install
-------
```
go get github.com/dariubs/gorm-jsonb
```
example
-------
```go
package main
import "github.com/dariubs/gorm-jsonb"
type Data struct {
Name string
Social gormjsonb.JSONB
}
func main() {
data := Data{}
data.Social = make(map[string]interface{})
data.Social["github"] = "github.com/dariubs"
data.Social["instagram"] = "instagram.com/drawush"
}
```
license
-------
GNU GPL v3