ziputil

package module
v0.0.0-...-63715d1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(source string, target string) (bool, string, interface{})

*

  • 打包成zip文件
  • src 源文件夹
  • target 目标文件名

func LoadCount

func LoadCount(source string) (bool, string, interface{})

*

  • 读取压缩文件里的文件数
  • source 源文件
  • Index 序号
  • (bool, string, interface{}) (content []byte, fileName string)

func ReadByIndex

func ReadByIndex(source string, Index int) (bool, string, interface{})

*

  • 读取指定(序号)文件
  • source 源文件
  • Index 序号
  • (bool, string, interface{}) (content []byte, fileName string)

func ReadByName

func ReadByName(source, Name string) (bool, string, interface{})

*

  • 读取指定(名称)文件
  • source 源文件
  • Name 名称
  • (bool, string, interface{}) (content []byte, fileName string)

func UnZip

func UnZip(source string, target string) (bool, string, interface{})

*

  • 解压zip文件
  • src 源文件夹
  • target 目标文件夹
  • (bool, string, interface{}) (int, msg)

Types

This section is empty.

Source Files

  • ZipUtil.go

Jump to

Keyboard shortcuts

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