Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5e9e5f494 | ||
|
|
31cd542929 |
+11
-2
@@ -1,12 +1,21 @@
|
||||
package main
|
||||
|
||||
import "net/http"
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/elazarl/go-bindata-assetfs"
|
||||
"mcquay.me/web"
|
||||
)
|
||||
|
||||
func main() {
|
||||
http.Handle(
|
||||
"/",
|
||||
http.FileServer(
|
||||
http.Dir("."),
|
||||
&assetfs.AssetFS{
|
||||
Asset: web.Asset,
|
||||
AssetDir: web.AssetDir,
|
||||
Prefix: "static",
|
||||
},
|
||||
),
|
||||
)
|
||||
if err := http.ListenAndServe(":8000", nil); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user