package
0.0.0-20230602011549-662bbfa06e1e
Repository: https://github.com/gnue/httpfs.git
Documentation: pkg.go.dev

# README

gitfs

Go lang git http.FileSystem

Installation

$ go get github.com/gnue/httpfs/gitfs

Usage

import "github.com/gnue/httpfs/gitfs"

Examples

GitFS

package main

import (
	"github.com/gnue/httpfs/gitfs"
	"net/http"
)

func main() {
	fs := gitfs.New("sites.gif", "master")

	http.Handle("/", http.FileServer(fs))
	http.ListenAndServe(":8080", nil)
}

Simple git webserver

Author

gnue

License

MIT