newAttachmentArgs describes each asset for the markdown half of the package, without a URL, since nothing has uploaded yet.
(assets []UserAsset)
| 199 | // newAttachmentArgs describes each asset for the markdown half of the |
| 200 | // package, without a URL, since nothing has uploaded yet. |
| 201 | func newAttachmentArgs(assets []UserAsset) []attachmentArg { |
| 202 | args := make([]attachmentArg, len(assets)) |
| 203 | for i, a := range assets { |
| 204 | f := a.getAsset() |
| 205 | args[i] = attachmentArg{Path: f.path, Alt: f.alt, RendersAsPlayer: a.rendersAsPlayer()} |
| 206 | } |
| 207 | return args |
| 208 | } |
| 209 | |
| 210 | // attach points the document at the URLs of its attachments that uploaded, |
| 211 | // given urls, which holds an empty string for each file that did not. The |
no test coverage detected