go-git-http:Go(golang)中的Smart Git Http服务器库

时间:2021-04-29 20:06:07
【文件属性】:
文件名称:go-git-http:Go(golang)中的Smart Git Http服务器库
文件大小:29KB
文件格式:ZIP
更新时间:2021-04-29 20:06:07
Go go-git-http Go(golang)中的Smart Git Http服务器库 例子 package main import ( "log" "net/http" "github.com/AaronO/go-git-http" ) func main () { // Get git handler to serve a directory of repos git := githttp . New ( "/Users/aaron/git" ) // Attach handler to http server http . Handle ( "/" , git ) // Start HTTP server err := http . ListenAndServe ( ":8080" , nil ) if
【文件预览】:
go-git-http-master
----.gitignore(259B)
----utils.go(2KB)
----routing.go(3KB)
----version.go(41B)
----rpc_reader.go(2KB)
----pktparser_test.go(950B)
----.travis.yml(34B)
----LICENSE(11KB)
----events.go(1KB)
----auth()
--------basicauth_test.go(561B)
--------auth.go(2KB)
--------auth_test.go(331B)
--------basicauth.go(925B)
----testdata()
--------receive-pack.0(1010B)
--------upload-pack.0(2KB)
--------receive-pack.1(7KB)
--------receive-pack.3(405B)
--------receive-pack.2(199B)
--------upload-pack.1(197B)
----pktparser.go(3KB)
----README.md(2KB)
----git_reader.go(802B)
----githttp.go(6KB)
----errors.go(221B)
----rpc_reader_test.go(5KB)

网友评论