Skip to content

Hello BinodKafle #1

Description

@blizzardtrade

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions