DEV Community

Cover image for Going Serverless with Go: A Guide to Lambda Functions

Going Serverless with Go: A Guide to Lambda Functions

Abinash S on February 17, 2024

Have you ever thought, “I wish I could just write code without all the extra fuss”? Well, you’re in the right place. Our journey is all about using...
Collapse
 
msveshnikov profile image
Max Sveshnikov

I was ways thinking that serverless is for scripting languages. Go is compiled. How comes?

Collapse
 
s-abinash profile image
Abinash S

For languages like Go, Rust we make the build of our code for the specific runtime of the lambda we intend to use and then push. This typically involves building every function separately using go build. But this plugin, serverless-go-plugin (thanks to github.com/sean9keenan) makes the job easier. We just need to mention the runtime and other options in the plugin attributes section of serverless file.