Files
go-cbox-scraper/message.go
T
Amrit Panesar 7ebc9d5acc remove unnecessary CBox prefix
rewrite sraper/dumper examples
load should not nake a new file
simply the NewScraper() funciton
2021-08-10 04:46:12 -07:00

18 lines
298 B
Go

package go_cbox_scraper
import (
"fmt"
"time"
)
type Message struct {
MessageID int
DateTime time.Time
Username string
Message string
}
func (m *Message) String() string {
return fmt.Sprintf("#%d [%s] <%s> %s", m.MessageID, m.DateTime.Format(DatetimeFormat), m.Username, m.Message)
}