Paths returns a copy of the ordered part paths.
()
| 195 | |
| 196 | // Paths returns a copy of the ordered part paths. |
| 197 | func (s *FileBodySource) Paths() []string { |
| 198 | if s == nil { |
| 199 | return nil |
| 200 | } |
| 201 | s.mu.Lock() |
| 202 | defer s.mu.Unlock() |
| 203 | out := make([]string, len(s.paths)) |
| 204 | copy(out, s.paths) |
| 205 | return out |
| 206 | } |
| 207 | |
| 208 | // WriteTo merges all ordered parts into w. |
| 209 | func (s *FileBodySource) WriteTo(w io.Writer) error { |
no outgoing calls