Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 6fd93a1

Browse files
committed
* Renamed library path to LF-Engineering
* Added setup_dev and fmt targets to build
1 parent bdbbc0c commit 6fd93a1

File tree

17 files changed

+34
-19
lines changed

17 files changed

+34
-19
lines changed

Makefile

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,33 @@ GOBUILD=$(GOCMD) build
44
GOCLEAN=$(GOCMD) clean
55
GOTEST=$(GOCMD) test
66
GOGET=$(GOCMD) get
7+
GOFMT=$(GOCMD) fmt
8+
GOIMPORTS=goimports
79
CORE_BINARY_NAME=aws-lambda-go-api-proxy-core
810
GIN_BINARY_NAME=aws-lambda-go-api-proxy-gin
911
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+
1015

1116
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
1324
$(GOBUILD) ./...
1425
cd sample && $(GOBUILD) -o $(SAMPLE_BINARY_NAME)
1526
package:
1627
cd sample && zip main.zip $(SAMPLE_BINARY_NAME)
1728
test:
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

chi/adapter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
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

chi/chilambda_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
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"

core/request_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
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"

echo/adapter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
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

echo/echolambda_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package echoadapter_test
33
import (
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"

gin/adapter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
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

gin/ginlambda_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
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"

gorillamux/adapter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
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

gorillamux/adapter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
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"

0 commit comments

Comments
 (0)