Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

avakarev/go-gormutil

Repository files navigation

gormutil

Opinionated utilities for Gorm

NOTE: deprecated, merged into https://github.com/avakarev/go-util

Scheduled for deletion after 2023-09-1

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-gormutil

License

go-testutil is licensed under MIT license. (see LICENSE)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published