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