12 lines
213 B
Go
12 lines
213 B
Go
package main
|
|
|
|
type Message struct {
|
|
Author string `json:"author"`
|
|
Body string `json:"body"`
|
|
Image string `json:"image"`
|
|
}
|
|
|
|
func (self *Message) String() string {
|
|
return self.Author + " says " + self.Body
|
|
}
|