remove unnecessary CBox prefix

rewrite sraper/dumper examples
load should not nake a new file
simply the NewScraper() funciton
This commit is contained in:
Amrit Panesar committed 2021-08-10 04:46:12 -07:00
1 parent ff740d65a7
commit 7ebc9d5acc
6 files changed
+80 -60

No files matched your search

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