Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Latest commit

 

History

History
28 lines (24 loc) · 596 Bytes

golang.md

File metadata and controls

28 lines (24 loc) · 596 Bytes

Golang

For Go functions, the handler parameter must be the path to your handler's package. For example, if you have the following structure:

- src
  - testing
  - handler.go -> package main in src/testing subdirectory
  - second
  - handler.go -> package main in src/second subdirectory
- serverless.yml
- handler.go -> package main at the root of project

Your serverless.yml functions should look something like this:

provider:
  # ...
  runtime: go118
functions:
  main:
    handler: "."
  testing:
    handler: src/testing
  second:
    handler: src/second