【文件属性】:
文件名称:go-pinch:使用Go捏
文件大小:11KB
文件格式:ZIP
更新时间:2021-05-22 10:36:44
Go
去捏
通过网络从zip存档中检索文件!
借助Pinch,可以通过HTTP / 1.1从ZIP存档中下载特定文件,而仅使用Go标准库( 和 )
较早的版本是用 , 和编写的
状态:工作,但没有任何已知用途:)
安装
go get -u github.com/peterhellberg/go-pinch
用法
$ go-pinch http://example/path/to.zip file.json
或直接从Go中:
package main
import (
"github.com/peterhellberg/go-pinch/pinch"
"os"
)
func main () {
file , _ := pinch . Get ( "http://peterhellberg.github.com/pinch/test.zip" , "data.json" )
os
【文件预览】:
go-pinch-master
----main.go(2KB)
----pinch()
--------http_test.go(1KB)
--------zip_entry.go(791B)
--------zip_end_record.go(2KB)
--------zip_dir_record.go(3KB)
--------http.go(1KB)
--------zip_file_header.go(1KB)
--------pinch.go(4KB)
--------pinch_test.go(1KB)
--------zip_file_header_test.go(2KB)
----.travis.yml(130B)
----main_test.go(1KB)
----README.md(2KB)
----.gitignore(16B)