Lines Matching refs:zip

15 package zip  package
55 func fh(name string, contents []byte, method uint16) zip.FileHeader {
56 return zip.FileHeader{
65 func fhManifest(contents []byte) zip.FileHeader {
66 return zip.FileHeader{
68 Method: zip.Store,
75 func fhLink(name string, to string) zip.FileHeader {
76 return zip.FileHeader{
78 Method: zip.Store,
85 func fhDir(name string) zip.FileHeader {
86 return zip.FileHeader{
88 Method: zip.Store,
113 files []zip.FileHeader
120 files: []zip.FileHeader{},
130 files: []zip.FileHeader{
131 fh("a/a/a", fileA, zip.Deflate),
132 fh("a/a/b", fileB, zip.Deflate),
133 fh("c", fileC, zip.Deflate),
144 files: []zip.FileHeader{
145 fh("a/a", fileA, zip.Deflate),
146 fh("a/b", fileB, zip.Deflate),
159 files: []zip.FileHeader{
160 fh("a/a", fileA, zip.Deflate),
161 fh("a/b", fileB, zip.Deflate),
174 files: []zip.FileHeader{
175 fh("a/a/a", fileA, zip.Store),
176 fh("a/a/b", fileB, zip.Store),
177 fh("c", fileC, zip.Store),
190 files: []zip.FileHeader{
191 fh("a/a/a", fileA, zip.Deflate),
192 fh("a/a/b", fileB, zip.Deflate),
207 files: []zip.FileHeader{
208 fh("a/a/a", fileA, zip.Deflate),
209 fh("a/a/b", fileB, zip.Deflate),
210 fh("a/a/c", fileC, zip.Deflate),
211 fh("a/a/d", fileB, zip.Deflate),
221 files: []zip.FileHeader{
231 files: []zip.FileHeader{
232 fh("a/a/a", fileA, zip.Deflate),
233 fh("a/a/b", fileB, zip.Deflate),
234 fh("c", fileC, zip.Deflate),
243 files: []zip.FileHeader{
244 fh("a/a/a", fileA, zip.Deflate),
245 fh("a/a/b", fileB, zip.Deflate),
246 fh("c", fileC, zip.Deflate),
258 files: []zip.FileHeader{
259 fh("foo/a/a/a", fileA, zip.Deflate),
260 fh("foo/a/a/b", fileB, zip.Deflate),
261 fh("foo/c", fileC, zip.Deflate),
272 files: []zip.FileHeader{
273 fh("a/a", fileA, zip.Deflate),
274 fh("a/b", fileB, zip.Deflate),
286 files: []zip.FileHeader{
287 fh("a/a", fileA, zip.Deflate),
288 fh("b", fileB, zip.Deflate),
299 files: []zip.FileHeader{
304 fh("a/a/a", fileA, zip.Deflate),
305 fh("a/a/b", fileB, zip.Deflate),
317 files: []zip.FileHeader{
322 fh("a/a/a", fileA, zip.Deflate),
323 fh("a/a/b", fileB, zip.Deflate),
334 files: []zip.FileHeader{
337 fh("a/a/a", fileA, zip.Deflate),
338 fh("a/a/b", fileB, zip.Deflate),
349 files: []zip.FileHeader{
350 fh("a", fileA, zip.Deflate),
351 fh("b", fileB, zip.Deflate),
362 files: []zip.FileHeader{
363 fh("a/a/a", fileA, zip.Store),
364 fh("a/a/b", fileB, zip.Deflate),
376 files: []zip.FileHeader{
377 fh("a/a/a", fileA, zip.Deflate),
378 fh("a/a/b", fileB, zip.Deflate),
449 zr, err := zip.NewReader(br, int64(br.Len()))
454 var files []zip.FileHeader