summaryrefslogtreecommitdiff
path: root/pkg/model/echo.go
blob: 5f642dacb8eddd89b8f28bddd9a3611b45d3fced (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"))
}