aboutsummaryrefslogblamecommitdiffstats
path: root/web/web.go
blob: 2a320ea4e35f55ea58d5d232eb52123b699f4884 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                
package web

import (
	"net/http"
)

func Serve(addr string, webroot string) {
	fs := http.FileServer(http.Dir(webroot))
	http.Handle("/", fs)
	http.ListenAndServe(addr, nil)
}