Skip to content

Commit

Permalink
Changed extract func namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
almeida-raphael committed Jun 20, 2020
1 parent 570c880 commit f38c869
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/zip_to_memory.go → pkg/zip/in_memory.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pkg
package zip

import (
"archive/zip"
Expand All @@ -7,7 +7,7 @@ import (
"io/ioutil"
)

func ExtractZipInMemory(data []byte) ([]byte, error){
func ExtractInMemory(data []byte) ([]byte, error){
readerAt := bytes.NewReader(data)
r, err := zip.NewReader(readerAt, int64(len(data)))
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions pkg/zip_in_memory.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package pkg

0 comments on commit f38c869

Please sign in to comment.