add functionality

This commit is contained in:
Amrit Panesar committed 2020-10-29 15:17:33 -07:00
1 parent 11cee3336d
commit b87ac1bb0e
5 files changed
+992

No files matched your search

+16
View File
@@ -1 +1,17 @@
package go_cbox_scraper
import (
"fmt"
"time"
)
type CBoxMessage 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(time.Stamp), m.Username, m.Message)
}