owncast/message.go

12 lines
213 B
Go
Raw Normal View History

2020-05-24 03:57:49 +03:00
package main
type Message struct {
Author string `json:"author"`
Body string `json:"body"`
2020-06-02 09:50:32 +03:00
Image string `json:"image"`
2020-05-24 03:57:49 +03:00
}
func (self *Message) String() string {
return self.Author + " says " + self.Body
}