ziputil

package module
v0.0.0-...-4fd775f Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 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) *msgentity.MsgEntity

*

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

func LoadCount

func LoadCount(source string) *msgentity.MsgEntity

*

  • 读取压缩文件里的文件数
  • source 源文件
  • iIndex 序号
  • *msgentity.MsgEntity (content []byte, fileName string)

func ReadByIndex

func ReadByIndex(source string, iIndex int) *msgentity.MsgEntity

*

  • 读取指定(序号)文件
  • source 源文件
  • iIndex 序号
  • *msgentity.MsgEntity (content []byte, fileName string)

func ReadByName

func ReadByName(source, sName string) *msgentity.MsgEntity

*

  • 读取指定(名称)文件
  • source 源文件
  • sName 名称
  • *msgentity.MsgEntity (content []byte, fileName string)

func UnZip

func UnZip(source string, target string) *msgentity.MsgEntity

*

  • 解压zip文件
  • src 源文件夹
  • target 目标文件夹
  • *msgentity.MsgEntity (int, msg)

Types

This section is empty.

Jump to

Keyboard shortcuts

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