Skip to content

savaki/aws-lambda-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc

aws-lambda-http

aws-lambda-http provides a wrapper for http.Handler and http.HandlerFunc that allows them to be used by lambda without any changes.

Example

package main

import (
	"io"
	"net/http"

	"github.com/aws/aws-lambda-go/lambda"
	"github.com/savaki/aws-lambda-http/lambdahttp"
)

func hello(w http.ResponseWriter, req *http.Request) {
	io.WriteString(w, "hello world")
}

func main() {
	lambda.Start(lambdahttp.WrapF(hello))
}

About

allows http.Handler to be used for lambda functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages