Skip to content

add main name to import function #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bravecorvus
Copy link

Description of changes:
I just made the changes to main_test.go which follow the docs. without the rename of main for the "package" github.com/aws-samples/lambda-go-samples , main_test.go will not be able to find the package namespace main.

However, this still does not fix the problem that since main.go is not actually a package (it is a program driver). I am not entirely sure how to test a main program in this way in idiomatic go, but I hope this gets a little closer to the fix.

The exact message in my code is:

main_test.go|6 col 2 error| import "github.com/aws-samples/lambda-go-samples" is a program, not an importable package

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@nmccready
Copy link

Why is this not merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants