(links []*share.Link)
| 42 | } |
| 43 | |
| 44 | func toShareResponses(links []*share.Link) []*shareResponse { |
| 45 | res := make([]*shareResponse, 0, len(links)) |
| 46 | for _, l := range links { |
| 47 | res = append(res, toShareResponse(l)) |
| 48 | } |
| 49 | return res |
| 50 | } |
| 51 | |
| 52 | func withPermShare(fn handleFunc) handleFunc { |
| 53 | return withUser(func(w http.ResponseWriter, r *http.Request, d *data) (int, error) { |
no test coverage detected