Lambda

command
v0.0.0-...-95f5d90 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 2 Imported by: 0

README

Go Lambda

// main.go
package main

import (
	"github.com/aws/aws-lambda-go/lambda"
)

func hello() (string, error) {
	return "Hello ƛ!", nil
}

func main() {
	// Make the handler available for Remote Procedure Call by AWS Lambda
	lambda.Start(hello)
}
go.exe get -u github.com/aws/aws-lambda-go/cmd/build-lambda-zip
set GOOS=linux
set GOARCH=amd64
go build -o main main.go
%USERPROFILE%\Go\bin\build-lambda-zip.exe -o main.zip main

Resources

https://docs.aws.amazon.com/es_es/lambda/latest/dg/go-programming-model-context.html

https://docs.aws.amazon.com/es_es/lambda/latest/dg/best-practices.html

https://docs.aws.amazon.com/es_es/lambda/latest/dg/go-programming-model-env-variables.html

https://github.com/aws/aws-lambda-go

Documentation

Overview

main.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL