feat: initial project setup

This commit is contained in:
2025-12-05 19:14:01 -03:00
commit 8e790ef8ed
7 changed files with 201 additions and 0 deletions

21
main.go Normal file
View File

@@ -0,0 +1,21 @@
package main
import (
"log"
"net/http"
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
"git.workflows.cl/mcabezas/testing-go-example/internal/handlers"
)
func main() {
r := chi.NewRouter()
r.Use(middleware.Logger)
bookHandler := handlers.NewBookHandler()
r.Get("/books/{id}", bookHandler.GetBook)
log.Println("Servidor en http://localhost:3000")
http.ListenAndServe(":3000", r)
}