serverless-golang | AWS Lambda Go functions using Serverless | Function As A Service library
kandi X-RAY | serverless-golang Summary
kandi X-RAY | serverless-golang Summary
Gopher by @flemay, inspired by @ashleymcnamara and Renee French artworks. Go Meetup Presentation:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of serverless-golang
serverless-golang Key Features
serverless-golang Examples and Code Snippets
Community Discussions
Trending Discussions on serverless-golang
QUESTION
I installed Go with homebrew and it usually works. Following the tutorial here on creating serverless api in Go. When I try to run the unit tests, I get the following error:
...ANSWER
Answered 2018-Feb-01 at 22:35Some things to try/verify:
- As JimB notes, starting with Go 1.8 the GOPATH env var is now optional and has default values: https://rakyll.org/default-gopath/
- While you don't need to set it, the directory does need to have the Go workspace structure: https://golang.org/doc/code.html#Workspaces
- Once that is created, create your source file in something like: $GOPATH/src/github.com/DataKid/sample/main.go
cd
into that directory, and re-run thego get
commands:go get -u -v github.com/stretchr/testify
go get -u -v github.com/aws/aws-lambda-go/lambda
- Then try running the test command again:
go test -v
The -v
option is for verbose output, the -u
option ensures you download the latest package versions (https://golang.org/cmd/go/#hdr-Download_and_install_packages_and_dependencies).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install serverless-golang
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page