How to create a REST API in Golang with serverless

Link to chapter — https://serverless-stack.com/examples/how-to-create-a-rest-api-in-golang-with-serverless.html

I just created an account to give a big warning on the fact your example of REST API in Golang is flat-out wrong on multiple levels and will absolutely not work at any point. Like declaring multiple times the same package name? The fact it systematically crashes on the build/call of the HTTP server? The fact the given sourcecode isn’t even iso with your tutorial examples?

Like, is the guy who wrote that even a Golang developer? Did he try what he wrote? Or was it generated by ChatGPT or something?

I think it might’ve gotten edited along the way. Would appreciate a PR for this!