fin-check-api/cmd/http-server/main.go
2024-08-02 00:03:51 +03:00

20 lines
305 B
Go

package main
import (
"fmt"
"net/http"
"git.qowevisa.me/Qowevisa/gonuts/db"
)
func main() {
dbc := db.Connect()
if dbc != nil {
fmt.Printf("yay\n")
}
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, World!")
})
http.ListenAndServe(":8080", nil)
}