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
4
4
GOCLEAN =$(GOCMD ) clean
5
5
GOTEST =$(GOCMD ) test
6
6
GOGET =$(GOCMD ) get
7
+ GOFMT =$(GOCMD ) fmt
8
+ GOIMPORTS =goimports
7
9
CORE_BINARY_NAME =aws-lambda-go-api-proxy-core
8
10
GIN_BINARY_NAME =aws-lambda-go-api-proxy-gin
9
11
SAMPLE_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
+
10
15
11
16
all : 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
13
24
$(GOBUILD ) ./...
14
25
cd sample && $(GOBUILD ) -o $(SAMPLE_BINARY_NAME )
15
26
package :
16
27
cd sample && zip main.zip $(SAMPLE_BINARY_NAME )
17
28
test :
18
29
$(GOTEST ) -v ./...
19
- clean :
30
+ fmt :
31
+ @$(GOFMT ) $(GO_PKGS )
32
+ @$(GOIMPORTS ) -w -l $(GO_FILES )
33
+ clean :
20
34
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 7
7
"context"
8
8
"net/http"
9
9
10
+ "github.com/LF-Engineering/aws-lambda-go-api-proxy/core"
10
11
"github.com/aws/aws-lambda-go/events"
11
- "github.com/awslabs/aws-lambda-go-api-proxy/core"
12
12
"github.com/go-chi/chi"
13
13
)
14
14
Original file line number Diff line number Diff line change 5
5
"log"
6
6
"net/http"
7
7
8
+ chiadapter "github.com/LF-Engineering/aws-lambda-go-api-proxy/chi"
8
9
"github.com/aws/aws-lambda-go/events"
9
- chiadapter "github.com/awslabs/aws-lambda-go-api-proxy/chi"
10
10
"github.com/go-chi/chi"
11
11
12
12
. "github.com/onsi/ginkgo"
Original file line number Diff line number Diff line change 7
7
"math/rand"
8
8
"os"
9
9
10
+ "github.com/LF-Engineering/aws-lambda-go-api-proxy/core"
10
11
"github.com/aws/aws-lambda-go/events"
11
12
"github.com/aws/aws-lambda-go/lambdacontext"
12
- "github.com/awslabs/aws-lambda-go-api-proxy/core"
13
13
14
14
. "github.com/onsi/ginkgo"
15
15
. "github.com/onsi/gomega"
Original file line number Diff line number Diff line change 7
7
"context"
8
8
"net/http"
9
9
10
+ "github.com/LF-Engineering/aws-lambda-go-api-proxy/core"
10
11
"github.com/aws/aws-lambda-go/events"
11
- "github.com/awslabs/aws-lambda-go-api-proxy/core"
12
12
"github.com/labstack/echo"
13
13
)
14
14
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ package echoadapter_test
3
3
import (
4
4
"log"
5
5
6
+ echoadapter "github.com/LF-Engineering/aws-lambda-go-api-proxy/echo"
6
7
"github.com/aws/aws-lambda-go/events"
7
- "github.com/awslabs/aws-lambda-go-api-proxy/echo"
8
8
"github.com/labstack/echo"
9
9
10
10
. "github.com/onsi/ginkgo"
Original file line number Diff line number Diff line change 7
7
"context"
8
8
"net/http"
9
9
10
+ "github.com/LF-Engineering/aws-lambda-go-api-proxy/core"
10
11
"github.com/aws/aws-lambda-go/events"
11
- "github.com/awslabs/aws-lambda-go-api-proxy/core"
12
12
"github.com/gin-gonic/gin"
13
13
)
14
14
Original file line number Diff line number Diff line change 4
4
"context"
5
5
"log"
6
6
7
+ ginadapter "github.com/LF-Engineering/aws-lambda-go-api-proxy/gin"
7
8
"github.com/aws/aws-lambda-go/events"
8
- ginadapter "github.com/awslabs/aws-lambda-go-api-proxy/gin"
9
9
"github.com/gin-gonic/gin"
10
10
11
11
. "github.com/onsi/ginkgo"
Original file line number Diff line number Diff line change 4
4
"context"
5
5
"net/http"
6
6
7
+ "github.com/LF-Engineering/aws-lambda-go-api-proxy/core"
7
8
"github.com/aws/aws-lambda-go/events"
8
- "github.com/awslabs/aws-lambda-go-api-proxy/core"
9
9
"github.com/gorilla/mux"
10
10
)
11
11
Original file line number Diff line number Diff line change 5
5
"fmt"
6
6
"net/http"
7
7
8
+ "github.com/LF-Engineering/aws-lambda-go-api-proxy/gorillamux"
8
9
"github.com/aws/aws-lambda-go/events"
9
- "github.com/awslabs/aws-lambda-go-api-proxy/gorillamux"
10
10
"github.com/gorilla/mux"
11
11
12
12
. "github.com/onsi/ginkgo"
You can’t perform that action at this time.
0 commit comments