package model // THREAD ||--|{ MESSAGE: "populated by" type Message struct { Updated uint64 ID string TS uint64 Author string Plaintext string ThreadID string } func NewMessage(ID string, TS uint64, Author, Plaintext string, ThreadID string) Message { return Message{ Updated: updated(), ID: ID, TS: TS, Author: Author, Plaintext: Plaintext, ThreadID: ThreadID, } } func (m Message) Empty() bool { return m == (Message{}) }