Some checks failed
Create and publish a Docker image 🚀 / build-and-push-image (push) Failing after 23s
16 lines
227 B
Go
16 lines
227 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
)
|
|
|
|
func main() {
|
|
fs := http.FileServer(http.Dir("./dist"))
|
|
http.Handle("/", fs)
|
|
|
|
addr := ":3000"
|
|
log.Println("Server started on", addr)
|
|
log.Fatal(http.ListenAndServe(addr, nil))
|
|
}
|