package tequat func (tqa TQA) Attachments() (attachments []Attachment) { for _, atom := range []Atom(tqa) { if attachment, ok := atom.(Attachment); ok { attachments = append(attachments, attachment) } } return }