Skip to content

Latest commit

 

History

History

gitfs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

gitfs

Go lang git http.FileSystem

Installation

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

Usage

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

Examples

GitFS

package main

import (
	"github.com/dolfly/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