Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Last active September 4, 2021 17:28
Show Gist options
  • Save percybolmer/3db43b2eda7f3dfe6662803c2ecca1e8 to your computer and use it in GitHub Desktop.
Save percybolmer/3db43b2eda7f3dfe6662803c2ecca1e8 to your computer and use it in GitHub Desktop.
#ddd-tavern
// Package entities holds all the entities that are shared across all subdomains
package entity
import (
"github.com/google/uuid"
)
// Person is a entity that represents a person in all Domains
type Person struct {
// ID is the identifier of the Entity, the ID is shared for all sub domains
ID uuid.UUID
// Name is the name of the person
Name string
// Age is the age of the person
Age int
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment