fin-check-api/cmd/http-server/main.go

20 lines
305 B
Go
Raw Normal View History

2024-08-01 23:03:51 +02:00
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)
}