This repository was archived by the owner on Aug 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 17 files changed +34
-19
lines changed Expand file tree Collapse file tree 17 files changed +34
-19
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,33 @@ GOBUILD=$(GOCMD) build
44GOCLEAN =$(GOCMD ) clean
55GOTEST =$(GOCMD ) test
66GOGET =$(GOCMD ) get
7+ GOFMT =$(GOCMD ) fmt
8+ GOIMPORTS =goimports
79CORE_BINARY_NAME =aws-lambda-go-api-proxy-core
810GIN_BINARY_NAME =aws-lambda-go-api-proxy-gin
911SAMPLE_BINARY_NAME =main
12+ GO_PKGS =$(shell go list ./... | grep -v /vendor/)
13+ GO_FILES =$(shell find . -type f -name '* .go' -not -path './vendor/* ')
14+
1015
1116all : clean test build package
12- build :
17+ setup_dev :
18+ go get -u golang.org/x/tools/cmd/goimports
19+ go get -u github.com/golang/dep/cmd/dep
20+ go get golang.org/x/tools/cmd/cover
21+ deps :
22+ dep ensure
23+ build : deps
1324 $(GOBUILD ) ./...
1425 cd sample && $(GOBUILD ) -o $(SAMPLE_BINARY_NAME )
1526package :
1627 cd sample && zip main.zip $(SAMPLE_BINARY_NAME )
1728test :
1829 $(GOTEST ) -v ./...
19- clean :
30+ fmt :
31+ @$(GOFMT ) $(GO_PKGS )
32+ @$(GOIMPORTS ) -w -l $(GO_FILES )
33+ clean :
2034 rm -f sample/$(SAMPLE_BINARY_NAME )
21- rm -f sample/$(SAMPLE_BINARY_NAME ) .zip
35+ rm -f sample/$(SAMPLE_BINARY_NAME ) .zip
36+ rm -rf ./vendor Gopkg.lock
Original file line number Diff line number Diff line change 77 "context"
88 "net/http"
99
10+ "github.com/LF-Engineering/aws-lambda-go-api-proxy/core"
1011 "github.com/aws/aws-lambda-go/events"
11- "github.com/awslabs/aws-lambda-go-api-proxy/core"
1212 "github.com/go-chi/chi"
1313)
1414
Original file line number Diff line number Diff line change 55 "log"
66 "net/http"
77
8+ chiadapter "github.com/LF-Engineering/aws-lambda-go-api-proxy/chi"
89 "github.com/aws/aws-lambda-go/events"
9- chiadapter "github.com/awslabs/aws-lambda-go-api-proxy/chi"
1010 "github.com/go-chi/chi"
1111
1212 . "github.com/onsi/ginkgo"
Original file line number Diff line number Diff line change 77 "math/rand"
88 "os"
99
10+ "github.com/LF-Engineering/aws-lambda-go-api-proxy/core"
1011 "github.com/aws/aws-lambda-go/events"
1112 "github.com/aws/aws-lambda-go/lambdacontext"
12- "github.com/awslabs/aws-lambda-go-api-proxy/core"
1313
1414 . "github.com/onsi/ginkgo"
1515 . "github.com/onsi/gomega"
Original file line number Diff line number Diff line change 77 "context"
88 "net/http"
99
10+ "github.com/LF-Engineering/aws-lambda-go-api-proxy/core"
1011 "github.com/aws/aws-lambda-go/events"
11- "github.com/awslabs/aws-lambda-go-api-proxy/core"
1212 "github.com/labstack/echo"
1313)
1414
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ package echoadapter_test
33import (
44 "log"
55
6+ echoadapter "github.com/LF-Engineering/aws-lambda-go-api-proxy/echo"
67 "github.com/aws/aws-lambda-go/events"
7- "github.com/awslabs/aws-lambda-go-api-proxy/echo"
88 "github.com/labstack/echo"
99
1010 . "github.com/onsi/ginkgo"
Original file line number Diff line number Diff line change 77 "context"
88 "net/http"
99
10+ "github.com/LF-Engineering/aws-lambda-go-api-proxy/core"
1011 "github.com/aws/aws-lambda-go/events"
11- "github.com/awslabs/aws-lambda-go-api-proxy/core"
1212 "github.com/gin-gonic/gin"
1313)
1414
Original file line number Diff line number Diff line change 44 "context"
55 "log"
66
7+ ginadapter "github.com/LF-Engineering/aws-lambda-go-api-proxy/gin"
78 "github.com/aws/aws-lambda-go/events"
8- ginadapter "github.com/awslabs/aws-lambda-go-api-proxy/gin"
99 "github.com/gin-gonic/gin"
1010
1111 . "github.com/onsi/ginkgo"
Original file line number Diff line number Diff line change 44 "context"
55 "net/http"
66
7+ "github.com/LF-Engineering/aws-lambda-go-api-proxy/core"
78 "github.com/aws/aws-lambda-go/events"
8- "github.com/awslabs/aws-lambda-go-api-proxy/core"
99 "github.com/gorilla/mux"
1010)
1111
Original file line number Diff line number Diff line change 55 "fmt"
66 "net/http"
77
8+ "github.com/LF-Engineering/aws-lambda-go-api-proxy/gorillamux"
89 "github.com/aws/aws-lambda-go/events"
9- "github.com/awslabs/aws-lambda-go-api-proxy/gorillamux"
1010 "github.com/gorilla/mux"
1111
1212 . "github.com/onsi/ginkgo"
You can’t perform that action at this time.
0 commit comments