package
1.3.4
Repository: https://github.com/avakarev/go-util.git
Documentation: pkg.go.dev

# README

gormutil

Opinionated utilities for Gorm

Requirements

gormutil includes

  • ModelBase
    • primary key named ID and is in uuid format
    • assumes each model has CreatedAt and UpdatedAt timestamps
  • Logger
    • backed by zerolog
    • respects LOG_LEVEL environment variable
  • Data Import/Export
    • Exports filterable tables into map[string]interface{}
    • Imports from map[string]interface{}
  • 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)