diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-10-20 03:39:07 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-10-20 03:41:40 +0300 |
commit | d9e19fc53fb386f4160b8c3e9d7c35aa217d9591 (patch) | |
tree | 0c3ce157e8f9317aa7c55915025db5d54ea97911 /pkg/model/echo.go |
Начальный коммит
Diffstat (limited to 'pkg/model/echo.go')
-rw-r--r-- | pkg/model/echo.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pkg/model/echo.go b/pkg/model/echo.go new file mode 100644 index 0000000..5f642da --- /dev/null +++ b/pkg/model/echo.go @@ -0,0 +1,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")) +} |