Domain Objects

Information

Domain objects are objects passed around and operated on by Business Logic. They should be defined in abstract modules.

Example

Simple user struct

type User struct {
  ID int64
  Name string
  Email string
  Password string
  CreatedAt time.Time
  UpdatedAt time.Time
}