add module file, add gob dump example, update the default datetime format

This commit is contained in:
Amrit Panesar committed 2021-08-10 03:15:50 -07:00
1 parent 2775e7c063
commit ff740d65a7
6 files changed
+52 -5

No files matched your search

+1 -1
View File
@@ -13,5 +13,5 @@ type CBoxMessage struct {
}
func (m *CBoxMessage) String() string {
return fmt.Sprintf("%d - %s - %s - %s", m.MessageID, m.DateTime.Format(time.Stamp), m.Username, m.Message)
return fmt.Sprintf("#%d [%s] <%s> %s", m.MessageID, m.DateTime.Format(CboxDatetimeFormat), m.Username, m.Message)
}