2015-02-09 22:23:42 -08:00
|
|
|
package main
|
|
|
|
|
2015-02-09 22:33:17 -08:00
|
|
|
import (
|
|
|
|
"net/http"
|
2015-02-09 23:01:28 -08:00
|
|
|
|
|
|
|
"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(
|
2015-02-09 23:01:28 -08:00
|
|
|
&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)
|
|
|
|
}
|
|
|
|
}
|