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.

39 lines
582 B
Go

package main
import (
"fmt"
"log"
"net/http"
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
)
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(
w, `
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
{ / ===-
\______ O __/
\ \ __/
\____\_______/
Hello from Docker!
`,
)
}
func main() {
r := chi.NewRouter()
r.Use(middleware.Logger)
r.Get("/", handler)
fmt.Println("Go backend started!")
log.Fatal(http.ListenAndServe(":80", r))
}