17 lines
267 B
Go
17 lines
267 B
Go
package scenario
|
|
|
|
type testSender struct {
|
|
sent []testMessage
|
|
}
|
|
|
|
type testMessage struct {
|
|
userId int64
|
|
message string
|
|
}
|
|
|
|
func (s *testSender) Send(userId int64, message string) {
|
|
s.sent = append(s.sent, testMessage{
|
|
userId: userId,
|
|
message: message,
|
|
})
|
|
}
|