github.com/wfusion/gofusion@v1.1.14/common/infra/watermill/message/messages.go (about) 1 package message 2 3 // Messages is a slice of messages. 4 type Messages []*Message 5 6 // IDs returns a slice of Messages' IDs. 7 func (m Messages) IDs() []string { 8 ids := make([]string, len(m)) 9 10 for i, msg := range m { 11 ids[i] = msg.UUID 12 } 13 14 return ids 15 }