This is the backend server for WritePad, written in Go.
main.go: Entry point. Sets up the server, Chi router, and CORS middleware.handlers.go: Contains the API logic (GenerateTemplateHandler,AutocompleteHandler).
POST /api/generate-template: Generates document templates using Groq AI.POST /api/autocomplete: Provides text completion using Groq AI.
go run main.go handlers.goServer runs on port 8080.