{"library":"serverless-go-build","title":"serverless-go-build","description":"A Serverless v1.x plugin to build Go binaries for AWS Lambda functions. Version 0.0.6 is the latest release as of the provided data. The plugin integrates with the Serverless Framework (v1.x) to automate building of Go code, allowing developers to specify .go files or module.Function as handlers in serverless.yml. Key differentiators: automatically builds all Go functions listed as handlers, supports individual packaging for reduced Lambda code size, runs Go tests with optional serverless plugin hooks, and is highly customizable via serverless.yml. It is less actively maintained compared to alternatives like serverless-go-plugin.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install serverless-go-build"],"cli":{"name":"serverless","version":null}},"imports":["plugins:\n  - serverless-go-build","custom:\n  go-build:\n    binPath: 'bin'","functions:\n  myFunc:\n    handler: main.go"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install --save serverless-go-build\n\n# serverless.yml\nservice: myService\nplugins:\n  - serverless-go-build\ncustom:\n  go-build:\n    binPath: bin\nprovider:\n  name: aws\n  runtime: go1.x\npackage:\n  individually: true\nfunctions:\n  hello:\n    handler: main.go\n    name: myService-dev-hello\n    events:\n      - http:\n          path: hello\n          method: get\n\n# main.go (in root)\npackage main\n\nimport \"github.com/aws/aws-lambda-go/lambda\"\n\nfunc main() {\n  lambda.Start(HandleRequest)\n}\n\nfunc HandleRequest() (string, error) {\n  return \"Hello from Go!\", nil\n}\n\n# build and deploy\nserverless build\nserverless deploy","lang":"javascript","description":"Install plugin, configure serverless.yml with Go handler, create main.go Lambda function, build and deploy.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}