Initial commit
This commit is contained in:
12
vendor/github.com/hyperhq/hypercli/contrib/httpserver/server.go
generated
vendored
Normal file
12
vendor/github.com/hyperhq/hypercli/contrib/httpserver/server.go
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fs := http.FileServer(http.Dir("/static"))
|
||||
http.Handle("/", fs)
|
||||
log.Panic(http.ListenAndServe(":80", nil))
|
||||
}
|
||||
Reference in New Issue
Block a user