Skip to content

Latest commit

 

History

History

unionfs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

unionfs

Go lang union http.FileSystem

Installation

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

Usage

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

Examples

UnionFS

package main

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

func main() {
	fs := unionfs.New(http.Dir("A"), http.Dir("B"))

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

Simple union file system webserver

Author

gnue

License

MIT