2020-05-23 17:57:49 -07:00
|
|
|
package main
|
|
|
|
|
|
|
|
type Message struct {
|
|
|
|
Author string `json:"author"`
|
|
|
|
Body string `json:"body"`
|
2020-06-01 23:50:32 -07:00
|
|
|
Image string `json:"image"`
|
2020-06-02 17:59:40 -07:00
|
|
|
Id string `json:"id"`
|
2020-05-23 17:57:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
func (self *Message) String() string {
|
|
|
|
return self.Author + " says " + self.Body
|
|
|
|
}
|