model-core.go

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2026 License: MIT

README

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.

Directories

Path Synopsis
Model package
Model package
VO package
VO package

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL