Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 716 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 716 Bytes

githttp

Documentation Go Report Card

A Go implementation of Git's HTTP "smart" protocol.

Minimalistic example with git bare repositories (with the .git extension) in the git_repositories/ directory:

package main

import (
	"net/http"

	"github.com/omegaup/githttp"
)

func main() {
	panic(http.Server{
		Addr:    ":80",
		Handler: githttp.NewGitServer(githttp.GitServerOpts{
			RootPath:     "git_repositories",
			EnableBrowse: true,
		}),
	}.ListenAndServe())
}