gorm jsonb datatype for postgres
go get github.com/dariubs/gorm-jsonb
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"
}
GNU GPL v3