Skip to content
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

Session signup can't find session.go func methods "getUser" , "alreadyLoggedIn" 030sessions 03_signup #22

Closed
lubi888 opened this issue Nov 6, 2018 · 1 comment

Comments

@lubi888
Copy link

lubi888 commented Nov 6, 2018

Hi Todd,

if I run the code as is then i get this error back on the command line:

# command-line-arguments
./main.go:33:7: undefined: getUser
./main.go:38:7: undefined: getUser
./main.go:39:6: undefined: alreadyLoggedIn
./main.go:47:5: undefined: alreadyLoggedIn

I know you deliberately wanted to keep session.go separate but I can only get this e.g. to work if i copy and paste the 2 funcs "getUser" and "alreadyLoggedIn" and place them in main.go while commenting out session.go completely.

have fun voting today & keep up the good work,

@lubi888 lubi888 changed the title Session signup can't find session.go func methods "getUser" , "alreadyLoggedIn" 030 Session signup can't find session.go func methods "getUser" , "alreadyLoggedIn" 030sessions 03_signup Nov 6, 2018
@lubi888
Copy link
Author

lubi888 commented Nov 6, 2018

oops, just found the solution to run multiple code files in the intro to the next video: 'encrypt passwd with bcrypt'

go run *go and the go build

@lubi888 lubi888 closed this as completed Nov 6, 2018
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

No branches or pull requests

1 participant