Implementation wrapper to work with Morphe specification data in the Go programming language.
- Create your
.mod
and.ent
YAML definition files in your project. - Install the
morphe-go
package viago get github.com/kalo-build/morphe-go
. - Initialize the registry instance with
r := registry.NewRegistry()
. - Load models / entities with registry methods:
modelsErr := r.LoadModelsFromDirectory(<modelsDirPath>)
entitiesErr := r.LoadEntitiesFromDirectory(<entitiesDirPath>)
- Access the registry model / entity definitions by name
<model|entity>, exists := r[<name>]