zip

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(file string) (fs.Dir, error)

Open opens a zip filesystem object.

func OpenHttp

func OpenHttp(url string) (fs.Dir, error)

OpenHttp opens hzip:<domain>/<path> OpenHttp("open.qiniu.us/weather/res.zip")

func OpenHttps

func OpenHttps(url string) (fs.Dir, error)

OpenHttps opens hzips:<domain>/<path> OpenHttps("open.qiniu.us/weather/res.zip")

Types

type FS

type FS zip.ReadCloser

A FS represents a zip filesystem.

func (*FS) Close

func (zipf *FS) Close() error

Close closes the filesystem object.

func (*FS) Open

func (zipf *FS) Open(name string) (io.ReadCloser, error)

Open opens a zipped file object.

Jump to

Keyboard shortcuts

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