Skip to content

Repository files navigation

model-core.go

CI Coverage License Issues PRs Dependabot

Base model/value-object types shared across sweetrpg's catalog and data services: Auditable/AuditableVO (created/updated/deleted tracking fields), and Property/Tag embedded models with conversion helpers between the persistence model and API value object representations.

Install

go get github.com/sweetrpg/model-core.go

Packages

  • models - Auditable, Property, Tag (persistence-layer structs)
  • vo - AuditableVO, PropertyVO, TagVO (API-facing equivalents)
  • util - FromPropertyModel(s)/ToPropertyModel(s) and FromTagModel(s)/ToTagModel(s) conversion functions between models and vo

Documentation

Package documentation: pkg.go.dev/github.com/sweetrpg/model-core.go. Test coverage reports are published to sweetrpg.github.io/model-core.go on every merge to develop.

Contributing

See CONTRIBUTING.md for the development workflow and RELEASE.md for how versions get cut.

About

Base classes and utilities for model objects

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages

Generated from sweetrpg/lib-template