Open
Description
this is my modd.conf
**/*.go {
prep: go test @dirmods
}
**/*.go {
prep: go build -o lenslocked .
daemon +sigterm: ./lenslocked
}
and this is my main.go
package main
import (
"fmt"
"net/http"
)
func handlerFunc(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "<h1> welcome to my site</h1>")
}
func main() {
http.HandleFunc("/", handlerFunc)
fmt.Println("starting on :3000...")
http.ListenAndServe(":3000", nil)
}
Metadata
Metadata
Assignees
Labels
No labels