| 实例名 | 实例描述 |
|---|
| AES128 | (zip.EncryptionMethod) 2 |
| AES192 | (zip.EncryptionMethod) 3 |
| AES256 | (zip.EncryptionMethod) 4 |
| StandardEncryption | (zip.EncryptionMethod) 1 |
| 函数名 | 函数描述/介绍 |
|---|
| zip.Compress | |
| zip.CompressByNameWithOptions | CompressByNameWithOptions 与 CompressByName 行为一致,但支持 CompressOption(含密码、加密方法)。 关键词: CompressByName, 密码 zip 写 |
| zip.CompressRaw | CompressRaw compresses a map to a zip file |
| zip.CompressRawWithPassword | CompressRawWithPassword 与 CompressRaw 类似,但生成 AES-256 加密的 zip。 关键词: 内存加密 zip, AES256 zip 创建 |
| zip.CompressWithPassword | CompressWithPassword 把若干文件压缩成带密码的 zip。 关键词: 文件加密压缩, AES zip 压缩 |
| zip.Decompress | 解压 |
| zip.DecompressFromRawWithOptions | DeCompressFromRawWithOptions 从原始字节解压 zip,支持 DecompressOption(含密码)。 关键词: zip 内存解压, DeCompressFromRaw, 密码 zip 解压 |
| zip.DecompressWithOptions | DeCompressWithOptions 解压 zip 文件,支持 DecompressOption(含密码)。 关键词: zip 解压密码, DeCompress |
| zip.DecompressWithPassword | DecompressWithPassword 解压带密码的 zip 到目标目录。 关键词: 加密 zip 解压, AES zip 解压 |
| zip.ExtractByPattern | ExtractByPattern 根据文件名模式提取文件(支持通配符) |
| zip.ExtractByPatternFromRaw | ExtractByPatternFromRaw 从原始数据根据文件名模式提取文件 |
| zip.ExtractByPatternFromRawWithOptions | |
| zip.ExtractByPatternWithOptions | |
| zip.ExtractFile | ExtractFile 从 ZIP 文件中提取单个文件 |
| zip.ExtractFileFromRaw | ExtractFileFromRaw 从 ZIP 原始数据中提取单个文件 |
| zip.ExtractFileFromRawWithOptions | ExtractFileFromRawWithOptions 从原始字节提取单个文件 关键词: ExtractFileFromRaw, 内存提取, 密码提取 |
| zip.ExtractFileWithOptions | ExtractFileWithOptions 提取单个文件,支持 ExtractOption(含密码) 关键词: ExtractFile, 密码提取 |
| zip.ExtractFiles | ExtractFiles 从 ZIP 文件中并发提取多个文件 |
| zip.ExtractFilesFromRaw | ExtractFilesFromRaw 从 ZIP 原始数据中并发提取多个文件 |
| zip.ExtractFilesFromRawWithOptions | |
| zip.ExtractFilesWithOptions | |
| zip.GrepPathRawRegexp | GrepPathRawRegexp 使用正则表达式在原始数据中搜索文件路径 |
| zip.GrepPathRawSubString | GrepPathRawSubString 使用子字符串在原始数据中搜索文件路径 |
| zip.GrepPathRegexp | GrepPathRegexp 使用正则表达式搜索文件路径 |
| zip.GrepPathSubString | GrepPathSubString 使用子字符串搜索文件路径 |
| zip.GrepRawRegexp | GrepRawRegexp 使用正则表达式在 ZIP 原始数据中搜索 |
| zip.GrepRawSubString | GrepRawSubString 使用子字符串在 ZIP 原始数据中搜索 |
| zip.GrepRegexp | GrepRegexp 使用正则表达式在 ZIP 文件中搜索 |
| zip.GrepSubString | GrepSubString 使用子字符串在 ZIP 文件中搜索 |
| zip.MergeGrepResults | MergeGrepResults 合并多个 GrepResult,将可以合并的结果合并在一起 |
| zip.NewGrepSearcher | NewZipGrepSearcher 创建一个新的 ZIP 搜索器(从文件) |
| zip.NewGrepSearcherFromRaw | NewZipGrepSearcherFromRaw 创建一个新的 ZIP 搜索器(从原始数据) |
| zip.RRFRankResults | RRFRankGrepResults 使用 RRF 算法对 GrepResult 进行排序 |
| zip.Recursive | Recursive Decompress decompresses a zip file to a directory |
| zip.RecursiveFromRaw | RecursiveFromRaw decompresses a zip file to a directory |
| zip.compressEncryption | WithCompressEncryption 设置加密方法(默认 AES256) 关键词: zip 加密方法, AES256 |
| zip.compressPassword | WithCompressPassword 为压缩设置密码 关键词: zip 压缩密码, 加密 zip 创建 |
| zip.decompressPassword | WithDecompressPassword 为解压设置密码 关键词: zip 解压密码 |
| zip.extractPassword | WithExtractPassword 为提取设置密码 关键词: zip 提取密码 |
| zip.grepCaseSensitive | |
| zip.grepContextLine | |
| zip.grepExcludePathRegexp | |
| zip.grepExcludePathSubString | |
| zip.grepIncludePathRegexp | |
| zip.grepIncludePathSubString | |
| zip.grepLimit | |
| zip.grepPassword | WithGrepPassword 在 zip 中执行 grep 时设置解密密码 关键词: zip grep 密码, 加密 zip 搜索 |
函数定义#
Compress#
详细描述#
Compress(zipName string, filenames ...string) error
| 参数名 | 参数类型 | 参数解释 |
|---|
| zipName | string | |
| filenames | ...string | |
返回值#
CompressByNameWithOptions#
详细描述#
CompressByNameWithOptions 与 CompressByName 行为一致,但支持 CompressOption(含密码、加密方法)。
关键词: CompressByName, 密码 zip 写
CompressByNameWithOptions(files []string, dest string, opts ...CompressOption) error
| 参数名 | 参数类型 | 参数解释 |
|---|
| files | []string | |
| dest | string | |
| opts | ...CompressOption | |
返回值#
CompressRaw#
详细描述#
CompressRaw compresses a map to a zip file
Example:
zipBytes = zip.CompressRaw({ "a.txt": "hello", "b.txt": "world", })~ zipBytes2, err = zip.CompressRaw({ "a.txt": "hello", "b.txt": file.ReadFile("/tmp/external-file-name.txt")~ })
CompressRaw(i any) ([]byte, error)
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []byte | |
| r2 | error | |
CompressRawWithPassword#
详细描述#
CompressRawWithPassword 与 CompressRaw 类似,但生成 AES-256 加密的 zip。
关键词: 内存加密 zip, AES256 zip 创建
Example:
zipBytes = zip.CompressRawWithPassword({"a.txt": "hello"}, "123456")~
CompressRawWithPassword(i any, password string, encryption ...ziputil.EncryptionMethod) ([]byte, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| i | any | |
| password | string | |
| encryption | ...ziputil.EncryptionMethod | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []byte | |
| r2 | error | |
CompressWithPassword#
详细描述#
CompressWithPassword 把若干文件压缩成带密码的 zip。
关键词: 文件加密压缩, AES zip 压缩
Example:
zip.CompressWithPassword("/tmp/out.zip", "123456", "/tmp/a.txt", "/tmp/b.txt")~
CompressWithPassword(zipName string, password string, filenames ...string) error
| 参数名 | 参数类型 | 参数解释 |
|---|
| zipName | string | |
| password | string | |
| filenames | ...string | |
返回值#
Decompress#
详细描述#
解压
Decompress(zipFile string, dest string) error
| 参数名 | 参数类型 | 参数解释 |
|---|
| zipFile | string | |
| dest | string | |
返回值#
DecompressFromRawWithOptions#
详细描述#
DeCompressFromRawWithOptions 从原始字节解压 zip,支持 DecompressOption(含密码)。
关键词: zip 内存解压, DeCompressFromRaw, 密码 zip 解压
DecompressFromRawWithOptions(raw []byte, dest string, opts ...DecompressOption) error
| 参数名 | 参数类型 | 参数解释 |
|---|
| raw | []byte | |
| dest | string | |
| opts | ...DecompressOption | |
返回值#
DecompressWithOptions#
详细描述#
DeCompressWithOptions 解压 zip 文件,支持 DecompressOption(含密码)。
关键词: zip 解压密码, DeCompress
DecompressWithOptions(zipFile string, dest string, opts ...DecompressOption) error
| 参数名 | 参数类型 | 参数解释 |
|---|
| zipFile | string | |
| dest | string | |
| opts | ...DecompressOption | |
返回值#
DecompressWithPassword#
详细描述#
DecompressWithPassword 解压带密码的 zip 到目标目录。
关键词: 加密 zip 解压, AES zip 解压
Example:
zip.DecompressWithPassword("/tmp/out.zip", "/tmp/dest", "123456")~
DecompressWithPassword(zipFile string, dest string, password string) error
| 参数名 | 参数类型 | 参数解释 |
|---|
| zipFile | string | |
| dest | string | |
| password | string | |
返回值#
ExtractByPattern#
详细描述#
ExtractByPattern 根据文件名模式提取文件(支持通配符)
ExtractByPattern(zipFile string, pattern string) ([]*ExtractResult, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| zipFile | string | |
| pattern | string | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*ExtractResult | |
| r2 | error | |
ExtractByPatternFromRaw#
详细描述#
ExtractByPatternFromRaw 从原始数据根据文件名模式提取文件
ExtractByPatternFromRaw(raw any, pattern string) ([]*ExtractResult, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| raw | any | |
| pattern | string | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*ExtractResult | |
| r2 | error | |
ExtractByPatternFromRawWithOptions#
详细描述#
ExtractByPatternFromRawWithOptions(raw any, pattern string, opts ...ExtractOption) ([]*ExtractResult, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| raw | any | |
| pattern | string | |
| opts | ...ExtractOption | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*ExtractResult | |
| r2 | error | |
ExtractByPatternWithOptions#
详细描述#
ExtractByPatternWithOptions(zipFile string, pattern string, opts ...ExtractOption) ([]*ExtractResult, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| zipFile | string | |
| pattern | string | |
| opts | ...ExtractOption | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*ExtractResult | |
| r2 | error | |
ExtractFile#
详细描述#
ExtractFile 从 ZIP 文件中提取单个文件
ExtractFile(zipFile string, targetFile string) ([]byte, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| zipFile | string | |
| targetFile | string | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []byte | |
| r2 | error | |
ExtractFileFromRaw#
详细描述#
ExtractFileFromRaw 从 ZIP 原始数据中提取单个文件
ExtractFileFromRaw(raw any, targetFile string) ([]byte, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| raw | any | |
| targetFile | string | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []byte | |
| r2 | error | |
ExtractFileFromRawWithOptions#
详细描述#
ExtractFileFromRawWithOptions 从原始字节提取单个文件
关键词: ExtractFileFromRaw, 内存提取, 密码提取
ExtractFileFromRawWithOptions(raw any, targetFile string, opts ...ExtractOption) ([]byte, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| raw | any | |
| targetFile | string | |
| opts | ...ExtractOption | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []byte | |
| r2 | error | |
ExtractFileWithOptions#
详细描述#
ExtractFileWithOptions 提取单个文件,支持 ExtractOption(含密码)
关键词: ExtractFile, 密码提取
ExtractFileWithOptions(zipFile string, targetFile string, opts ...ExtractOption) ([]byte, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| zipFile | string | |
| targetFile | string | |
| opts | ...ExtractOption | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []byte | |
| r2 | error | |
ExtractFiles#
详细描述#
ExtractFiles 从 ZIP 文件中并发提取多个文件
ExtractFiles(zipFile string, targetFiles []string) ([]*ExtractResult, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| zipFile | string | |
| targetFiles | []string | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*ExtractResult | |
| r2 | error | |
ExtractFilesFromRaw#
详细描述#
ExtractFilesFromRaw 从 ZIP 原始数据中并发提取多个文件
ExtractFilesFromRaw(raw any, targetFiles []string) ([]*ExtractResult, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| raw | any | |
| targetFiles | []string | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*ExtractResult | |
| r2 | error | |
ExtractFilesFromRawWithOptions#
详细描述#
ExtractFilesFromRawWithOptions(raw any, targetFiles []string, opts ...ExtractOption) ([]*ExtractResult, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| raw | any | |
| targetFiles | []string | |
| opts | ...ExtractOption | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*ExtractResult | |
| r2 | error | |
ExtractFilesWithOptions#
详细描述#
ExtractFilesWithOptions(zipFile string, targetFiles []string, opts ...ExtractOption) ([]*ExtractResult, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| zipFile | string | |
| targetFiles | []string | |
| opts | ...ExtractOption | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*ExtractResult | |
| r2 | error | |
GrepPathRawRegexp#
详细描述#
GrepPathRawRegexp 使用正则表达式在原始数据中搜索文件路径
GrepPathRawRegexp(raw any, pattern string, opts ...GrepOption) ([]*GrepResult, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| raw | any | |
| pattern | string | |
| opts | ...GrepOption | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*GrepResult | |
| r2 | error | |
GrepPathRawSubString#
详细描述#
GrepPathRawSubString 使用子字符串在原始数据中搜索文件路径
GrepPathRawSubString(raw any, substring string, opts ...GrepOption) ([]*GrepResult, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| raw | any | |
| substring | string | |
| opts | ...GrepOption | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*GrepResult | |
| r2 | error | |
GrepPathRegexp#
详细描述#
GrepPathRegexp 使用正则表达式搜索文件路径
GrepPathRegexp(zipFile string, pattern string, opts ...GrepOption) ([]*GrepResult, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| zipFile | string | |
| pattern | string | |
| opts | ...GrepOption | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*GrepResult | |
| r2 | error | |
GrepPathSubString#
详细描述#
GrepPathSubString 使用子字符串搜索文件路径
GrepPathSubString(zipFile string, substring string, opts ...GrepOption) ([]*GrepResult, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| zipFile | string | |
| substring | string | |
| opts | ...GrepOption | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*GrepResult | |
| r2 | error | |
GrepRawRegexp#
详细描述#
GrepRawRegexp 使用正则表达式在 ZIP 原始数据中搜索
GrepRawRegexp(raw any, pattern string, opts ...GrepOption) ([]*GrepResult, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| raw | any | |
| pattern | string | |
| opts | ...GrepOption | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*GrepResult | |
| r2 | error | |
GrepRawSubString#
详细描述#
GrepRawSubString 使用子字符串在 ZIP 原始数据中搜索
GrepRawSubString(raw any, substring string, opts ...GrepOption) ([]*GrepResult, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| raw | any | |
| substring | string | |
| opts | ...GrepOption | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*GrepResult | |
| r2 | error | |
GrepRegexp#
详细描述#
GrepRegexp 使用正则表达式在 ZIP 文件中搜索
GrepRegexp(zipFile string, pattern string, opts ...GrepOption) ([]*GrepResult, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| zipFile | string | |
| pattern | string | |
| opts | ...GrepOption | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*GrepResult | |
| r2 | error | |
GrepSubString#
详细描述#
GrepSubString 使用子字符串在 ZIP 文件中搜索
GrepSubString(zipFile string, substring string, opts ...GrepOption) ([]*GrepResult, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| zipFile | string | |
| substring | string | |
| opts | ...GrepOption | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*GrepResult | |
| r2 | error | |
MergeGrepResults#
详细描述#
MergeGrepResults 合并多个 GrepResult,将可以合并的结果合并在一起
MergeGrepResults(results []*GrepResult) []*GrepResult
| 参数名 | 参数类型 | 参数解释 |
|---|
| results | []*GrepResult | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*GrepResult | |
NewGrepSearcher#
详细描述#
NewZipGrepSearcher 创建一个新的 ZIP 搜索器(从文件)
NewGrepSearcher(zipFile string) (*ZipGrepSearcher, error)
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | *ZipGrepSearcher | |
| r2 | error | |
NewGrepSearcherFromRaw#
详细描述#
NewZipGrepSearcherFromRaw 创建一个新的 ZIP 搜索器(从原始数据)
NewGrepSearcherFromRaw(raw any, filename ...string) (*ZipGrepSearcher, error)
| 参数名 | 参数类型 | 参数解释 |
|---|
| raw | any | |
| filename | ...string | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | *ZipGrepSearcher | |
| r2 | error | |
RRFRankResults#
详细描述#
RRFRankGrepResults 使用 RRF 算法对 GrepResult 进行排序
Example:
results1 = zip.GrepRegexp("file.zip", "pattern1")~ results2 = zip.GrepSubString("file.zip", "keyword")~ allResults = append(results1, results2...) ranked = zip.RRFRankResults(allResults)~
RRFRankResults(results []*ziputil.GrepResult) []*ziputil.GrepResult
| 参数名 | 参数类型 | 参数解释 |
|---|
| results | []*ziputil.GrepResult | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | []*ziputil.GrepResult | |
Recursive#
详细描述#
Recursive Decompress decompresses a zip file to a directory
Example:
zip.Decompress("/tmp/abc.zip", (isDir, pathName, info) => { log.info("isDir: %v, pathName: %v, info: %v", isDir, pathName, info.Name()) })~
Recursive(i any, cb func(isDir bool, pathName string, info os.FileInfo) error) error
| 参数名 | 参数类型 | 参数解释 |
|---|
| i | any | |
| cb | func(isDir bool, pathName string, info os.FileInfo) error | |
返回值#
RecursiveFromRaw#
详细描述#
RecursiveFromRaw decompresses a zip file to a directory
Example:
raw = file.ReadFile("/tmp/abc.zip")~ zip.RecursiveFromRawBytes(raw, (isDir, pathName, info) => { log.info("isDir: %v, pathName: %v, info: %v", isDir, pathName, info.Name()) })
RecursiveFromRaw(i any, cb func(isDir bool, pathName string, info os.FileInfo) error) error
| 参数名 | 参数类型 | 参数解释 |
|---|
| i | any | |
| cb | func(isDir bool, pathName string, info os.FileInfo) error | |
返回值#
compressEncryption#
详细描述#
WithCompressEncryption 设置加密方法(默认 AES256)
关键词: zip 加密方法, AES256
compressEncryption(method EncryptionMethod) CompressOption
| 参数名 | 参数类型 | 参数解释 |
|---|
| method | EncryptionMethod | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | CompressOption | |
compressPassword#
详细描述#
WithCompressPassword 为压缩设置密码
关键词: zip 压缩密码, 加密 zip 创建
compressPassword(password string) CompressOption
| 参数名 | 参数类型 | 参数解释 |
|---|
| password | string | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | CompressOption | |
decompressPassword#
详细描述#
WithDecompressPassword 为解压设置密码
关键词: zip 解压密码
decompressPassword(password string) DecompressOption
| 参数名 | 参数类型 | 参数解释 |
|---|
| password | string | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | DecompressOption | |
extractPassword#
详细描述#
WithExtractPassword 为提取设置密码
关键词: zip 提取密码
extractPassword(password string) ExtractOption
| 参数名 | 参数类型 | 参数解释 |
|---|
| password | string | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | ExtractOption | |
grepCaseSensitive#
详细描述#
grepCaseSensitive(i ...bool) GrepOption
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | GrepOption | |
grepContextLine#
详细描述#
grepContextLine(context int) GrepOption
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | GrepOption | |
grepExcludePathRegexp#
详细描述#
grepExcludePathRegexp(patterns ...string) GrepOption
| 参数名 | 参数类型 | 参数解释 |
|---|
| patterns | ...string | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | GrepOption | |
grepExcludePathSubString#
详细描述#
grepExcludePathSubString(patterns ...string) GrepOption
| 参数名 | 参数类型 | 参数解释 |
|---|
| patterns | ...string | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | GrepOption | |
grepIncludePathRegexp#
详细描述#
grepIncludePathRegexp(patterns ...string) GrepOption
| 参数名 | 参数类型 | 参数解释 |
|---|
| patterns | ...string | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | GrepOption | |
grepIncludePathSubString#
详细描述#
grepIncludePathSubString(patterns ...string) GrepOption
| 参数名 | 参数类型 | 参数解释 |
|---|
| patterns | ...string | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | GrepOption | |
grepLimit#
详细描述#
grepLimit(limit int) GrepOption
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | GrepOption | |
grepPassword#
详细描述#
WithGrepPassword 在 zip 中执行 grep 时设置解密密码
关键词: zip grep 密码, 加密 zip 搜索
grepPassword(password string) GrepOption
| 参数名 | 参数类型 | 参数解释 |
|---|
| password | string | |
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 |
|---|
| r1 | GrepOption | |