baraka:处理文件上传的工具很简单

时间:2021-03-31 06:27:14
【文件属性】:
文件名称:baraka:处理文件上传的工具很简单
文件大小:13KB
文件格式:ZIP
更新时间:2021-03-31 06:27:14
go api golang http parser 巴拉卡 一种用于处理HTTP服务器的文件上传的工具 使使用http请求中的文件进行操作变得更加容易。 内容 安装 go get github.com/xis/baraka/v2 简单用法 func main () { // create a parser parser := baraka . NewParser (baraka. ParserOptions { MaxFileSize : 5 << 20 , MaxFileCount : 5 , MaxParseCount : 5 , }) store := baraka . NewFileSystemStore ( "./files" ) router := gin . Default () router . POST ( "/upload" , func ( c * gin. Context ) {
【文件预览】:
baraka-master
----inspector.go(831B)
----.travis.yml(207B)
----inspector_test.go(661B)
----parser.go(4KB)
----saver_test.go(905B)
----part.go(377B)
----filter_test.go(528B)
----parser_test.go(660B)
----LICENSE(1KB)
----saver.go(1KB)
----part_test.go(491B)
----request_test.go(886B)
----filter.go(807B)
----helpers_test.go(871B)
----.gitignore(277B)
----go.sum(1KB)
----CODE_OF_CONDUCT.md(3KB)
----README.md(3KB)
----request.go(521B)
----go.mod(120B)

网友评论