18 lines
251 B
Go
18 lines
251 B
Go
|
package model
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
type Echo struct {
|
||
|
Name string
|
||
|
Description string
|
||
|
Count int
|
||
|
Messages []string
|
||
|
}
|
||
|
|
||
|
func (e *Echo) Format() string {
|
||
|
return fmt.Sprintf("%s\n%s", e.Name, strings.Join(e.Messages, "\n"))
|
||
|
}
|