Opinionated utilities for Gorm
NOTE: deprecated, merged into https://github.com/avakarev/go-util
Scheduled for deletion after 2023-09-1
gormutil includes
- ModelBase
- primary key named
ID
and is in uuid format - assumes each model has
CreatedAt
andUpdatedAt
timestamps
- primary key named
- Logger
- backed by zerolog
- respects
LOG_LEVEL
environment variable
- Data Import/Export
- Exports filterable tables into
map[string]interface{}
- Imports from
map[string]interface{}
- Exports filterable tables into
- Create/Update helpers with respect of validation rules
go get github.com/avakarev/go-gormutil
go-testutil
is licensed under MIT license. (see LICENSE)