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

Hello BinodKafle #1

Open
blizzardtrade opened this issue Dec 7, 2020 · 1 comment
Open

Hello BinodKafle #1

blizzardtrade opened this issue Dec 7, 2020 · 1 comment

Comments

@blizzardtrade
Copy link

I am a beginner in Goland and try to use your code. Without attachment code work perfectly, But when I try to use code for attachment from your post on Medium I have a panic error and do not understand how t fix it.

in this code
_, err = GmailService.Users.Messages.Send("me", &message).Do()
if err != nil {
log.Printf("Error: %v !!!!!", err)
} else {
fmt.Println("Message sent!")
}
return true, nil

and response

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x96e727]

@BinodKafle
Copy link
Owner

Thank you @blizzardtrade. I will look into it

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

2 participants