Skip to content

Commit

Permalink
use go modules for dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
iamatypeofwalrus committed Nov 10, 2019
1 parent 5e52584 commit 54bb09a
Show file tree
Hide file tree
Showing 62 changed files with 24 additions and 3,761 deletions.
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,7 @@
# Shim
Shim is a thin layer between API Gateway integration requests via Lambda and the standard library `http.Handler` interface. It allows you to write plain ol' Go and run it on Lambda with minimal modifications. Bring your own router!

Shim uses [`dep`](https://golang.github.io/dep/) to manage its dependencies. You can add `shim` to your dep project by running:

```sh
dep ensure -add github.com/iamatypeofwalrus/shim
```

The codebase is semantically versioned so feel free to pull the latest version with:

```sh
dep ensure -update github.com/iamatypeofwalrus/shim
```
Shim uses [Go modules](https://github.com/golang/go/wiki/Modules) to model its dependencies.

## Example
For an extensive example on how `shim` fits in with other AWS serverless tooling like [SAM Local](https://github.com/awslabs/aws-sam-local) and the [Serverless Application Model (SAM) specification](https://github.com/awslabs/serverless-application-model) head over to the [this example in the wiki](https://github.com/iamatypeofwalrus/shim/wiki/Example:-AWS-Sam-Local)
Expand Down
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/iamatypeofwalrus/shim

go 1.13

require github.com/aws/aws-lambda-go v1.13.2
18 changes: 18 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/aws/aws-lambda-go v1.13.2 h1:8lYuRVn6rESoUNZXdbCmtGB4bBk4vcVYojiHjE4mMrM=
github.com/aws/aws-lambda-go v1.13.2/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU=
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
9 changes: 0 additions & 9 deletions vendor/github.com/aws/aws-lambda-go/Gopkg.lock

This file was deleted.

28 changes: 0 additions & 28 deletions vendor/github.com/aws/aws-lambda-go/Gopkg.toml

This file was deleted.

203 changes: 0 additions & 203 deletions vendor/github.com/aws/aws-lambda-go/LICENSE

This file was deleted.

15 changes: 0 additions & 15 deletions vendor/github.com/aws/aws-lambda-go/LICENSE-LAMBDACODE

This file was deleted.

7 changes: 0 additions & 7 deletions vendor/github.com/aws/aws-lambda-go/LICENSE-SUMMARY

This file was deleted.

40 changes: 0 additions & 40 deletions vendor/github.com/aws/aws-lambda-go/README.md

This file was deleted.

21 changes: 0 additions & 21 deletions vendor/github.com/aws/aws-lambda-go/events/README.md

This file was deleted.

Loading

0 comments on commit 54bb09a

Please sign in to comment.