idecnode/pkg/model/echo.go

18 lines
338 B
Go
Raw Normal View History

2024-10-20 03:39:07 +03:00
package model
import (
"fmt"
"strings"
)
type Echo struct {
2024-10-29 01:21:05 +03:00
Name string `json:"name"`
Description string `json:"description"`
Count int `json:"count"`
Messages []string `json:"messages,omitempty"`
2024-10-20 03:39:07 +03:00
}
func (e *Echo) Format() string {
return fmt.Sprintf("%s\n%s", e.Name, strings.Join(e.Messages, "\n"))
}