modulepackage
0.2.0
Repository: https://github.com/brokeyourbike/jsonarray.git
Documentation: pkg.go.dev
# README
jsonarray
GORM JSON Array Types
Installation
go get github.com/brokeyourbike/jsonarray
Usage
package main
import (
"github.com/brokeyourbike/jsonarray"
"gorm.io/gorm"
)
type User struct {
gorm.Model
Tags jsonarray.Slice[string]
}
Authors
- Ivan Stasiuk | Twitter | LinkedIn | stasi.uk
Thanks
License
# Type aliases
Slice defined JSON data type, need to implements driver.Valuer, sql.Scanner interface.