New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Golang support #4507
Comments
It was pre-announcement at re-invent. We should wait for the official release a couple of weeks. |
I can spend some time looking at this and potentially consolidate of the things I've been doing in https://github.com/yunspace/serverless-golang into the official repo. Happy to collaborate on this if anyone has already started |
AWESOME @yunspace 💯 Thank you for jumping in !!! AFAIK, nobody started working on this, so it would be great if you can do that 😄
Additionally, we need local invoke functionality as well, but it would be good to separate another issue. You can refer to the past PR for introducing other templates something like this Let us (@serverless/framework-maintainers) know if you have any other questions! |
Looking at the documentation Lambda Handler in Go , it seems the |
@flemay Opposed to other languages, Go exports a main() function as entry point for the executable - so it should be one executable per handler, which is perfectly fine. |
right @HyperBrain 👍 What I mean is: this should not work
this should work
|
@franciscocpg That should be easy to achieve. If the runtime is "go", it should be disallowed to specify handlers without a relative path in the # serverless.yml
functions:
okfunc:
handler: myfunc/handler
invalidfunc:
handler: handler Does that sound feasible? |
So I've tried with 1 function only with different approaches: in folder, not in folder
And I've got errors similar to the following
Somehow it does not find anything in |
I got it working! Thanks to this serverless blog |
In order to get
Thought this might help some others out. |
smashed out PR #4669 on a 4 hour bus ride to Canberra... should be ready soon! |
This is a Feature Proposal
Description
AWS Lambda now supports Golang: https://twitter.com/mthenw/status/936302935478358016
We should add
aws-golang
template.The text was updated successfully, but these errors were encountered: