# README
gormutil
Opinionated utilities for Gorm
Requirements
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
Install
go get github.com/avakarev/go-util/gormutil
License
go-testutil
is licensed under MIT license. (see LICENSE)