You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
336 B
Go
22 lines
336 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
|
|
"github.com/rakyll/statik/fs"
|
|
|
|
_ "github.com/fLotte-meets-HWR-DB/frontend/statik"
|
|
)
|
|
|
|
func main() {
|
|
statikFS, err := fs.New()
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
|
|
// Serve the contents over HTTP.
|
|
http.Handle("/", http.FileServer(statikFS))
|
|
log.Fatal(http.ListenAndServe(":8080", nil))
|
|
}
|