diff options
| -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) { |
