summaryrefslogblamecommitdiff
path: root/pkg/model/echo.go
blob: 21dcda67d63e77cd23a9331259098885dee85ee4 (plain) (tree)
1
2
3
4
5
6
7
8







                  



                                                        




                                                                            
package model

import (
	"fmt"
	"strings"
)

type Echo struct {
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Count       int      `json:"count"`
	Messages    []string `json:"messages,omitempty"`
}

func (e *Echo) Format() string {
	return fmt.Sprintf("%s\n%s", e.Name, strings.Join(e.Messages, "\n"))
}