web/cmd/smweb/main.go

25 lines
340 B
Go
Raw Normal View History

2015-02-09 22:23:42 -08:00
package main
2015-02-09 22:33:17 -08:00
import (
"net/http"
"github.com/elazarl/go-bindata-assetfs"
"mcquay.me/web"
2015-02-09 22:33:17 -08:00
)
2015-02-09 22:23:42 -08:00
func main() {
http.Handle(
"/",
http.FileServer(
&assetfs.AssetFS{
Asset: web.Asset,
AssetDir: web.AssetDir,
Prefix: "static",
},
2015-02-09 22:23:42 -08:00
),
)
if err := http.ListenAndServe(":8000", nil); err != nil {
panic(err)
}
}