zipfile

package
v0.0.0-...-fecdc3c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReader

type FileReader struct {
	Cursor   int
	NumFiles int
	// contains filtered or unexported fields
}

func New

func New(filename string) *FileReader

func (*FileReader) Read

func (r *FileReader) Read() (row *util.Row, err error)

Read will iterate through the zip file, it will treat each file in the zipfile as a row and return back to the caller, where the key is file or directory name and the value is the bytes of the file from the input zip file

func (*FileReader) ReadHeader

func (r *FileReader) ReadHeader() (fieldNames []string, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL