aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2020-04-12 12:40:47 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2020-04-12 12:40:47 +0100
commit72473d51710c65283e6ad4e76050be32a5d5720d (patch)
treeb62a76f02085097240e86d4f92a55cbd0bac9630 /cmd
parent2514ae873806ab19bcafcb58852db8170175d187 (diff)
Put both entry points in the same directory
Diffstat (limited to 'cmd')
-rw-r--r--cmd/go-import-redirect/main.go (renamed from cmd/gcp/main.go)2
-rw-r--r--cmd/go-import-redirect/main_aws.go (renamed from cmd/aws/main.go)7
2 files changed, 6 insertions, 3 deletions
diff --git a/cmd/gcp/main.go b/cmd/go-import-redirect/main.go
index c726408..064e932 100644
--- a/cmd/gcp/main.go
+++ b/cmd/go-import-redirect/main.go
@@ -3,6 +3,8 @@
// Use of this source code is governed by the ISC license that can be
// found in the LICENSE file.
+// +build !aws
+
package main
import (
diff --git a/cmd/aws/main.go b/cmd/go-import-redirect/main_aws.go
index 7954af3..f6a95b1 100644
--- a/cmd/aws/main.go
+++ b/cmd/go-import-redirect/main_aws.go
@@ -3,17 +3,18 @@
// Use of this source code is governed by the ISC license that can be
// found in the LICENSE file.
-// +build linux
+// +build aws,linux
package main
import (
"context"
+ "net/http"
+ "path"
+
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
"go.awhk.org/go-import-redirect/internal"
- "net/http"
- "path"
)
func redirect(ctx context.Context, req events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {