gozip

package
v0.0.0-...-68cae23 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 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 CodedData

type CodedData struct {
	OriginData FileInfo
	// contains filtered or unexported fields
}

func (*CodedData) EncodeBody

func (c *CodedData) EncodeBody()

func (*CodedData) EncodeHead

func (c *CodedData) EncodeHead()

type FileInfo

type FileInfo struct {
	OriginalDir  string
	OriginalPath string
	FileName     string
	// contains filtered or unexported fields
}

func ReadDirs

func ReadDirs(orgPath string, dir string) []FileInfo

递归便利文件夹下所有文件

func (FileInfo) GetAbsulutePath

func (f FileInfo) GetAbsulutePath() string

func (FileInfo) GetDate

func (f FileInfo) GetDate() []byte

func (FileInfo) GetFileName

func (f FileInfo) GetFileName() string

func (FileInfo) GetRelatedPath

func (f FileInfo) GetRelatedPath() string

type UnZip

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

func NewDecoder

func NewDecoder(originData []byte) *UnZip

func (*UnZip) UnMashall

func (d *UnZip) UnMashall()

func (*UnZip) UnZip

func (d *UnZip) UnZip(dir string)

type Zip

type Zip struct {
	CodedDatas []CodedData
}

func NewZip

func NewZip(filePaths ...string) *Zip

func (Zip) CalaZipRate

func (z Zip) CalaZipRate()

func (Zip) ZIP

func (z Zip) ZIP(dir string)

type ZipData

type ZipData struct {
	FileDir     string
	FileName    string
	CodeTable   map[string]byte
	Body        []byte
	UnZipedData []byte
}

func (*ZipData) Decode

func (z *ZipData) Decode() error

Jump to

Keyboard shortcuts

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