zipper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Zipper

type Zipper struct {
	// contains filtered or unexported fields
}

Zipper is a struct to operate with Kompas' zip file

func NewZipper

func NewZipper(zipFilePath string) (zipper *Zipper, err error)

NewZipper create Zipper instance for the specified zip archive file path

func (*Zipper) Close

func (z *Zipper) Close() error

func (*Zipper) OpenFile

func (z *Zipper) OpenFile(name string) (reader io.ReadCloser, err error)

OpenFile opens file from the zip archive by its name

func (*Zipper) ReadTextFile

func (z *Zipper) ReadTextFile(name string) (reader io.Reader, err error)

ReadTextFile reads content of the text file from the archive

Jump to

Keyboard shortcuts

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