web/cmd/smweb/main.go

19 lines
220 B
Go
Raw Permalink Normal View History

2015-02-09 22:23:42 -08:00
package main
2015-02-09 22:33:17 -08:00
import (
"net/http"
"os"
)
2015-02-09 22:23:42 -08:00
func main() {
http.Handle(
"/",
http.FileServer(
2015-02-09 22:33:17 -08:00
http.Dir(os.Getenv("SM_STATIC")),
2015-02-09 22:23:42 -08:00
),
)
if err := http.ListenAndServe(":8000", nil); err != nil {
panic(err)
}
}