Skip to content

Instantly share code, notes, and snippets.

@steebchen
Created December 3, 2019 12:02
Show Gist options
  • Save steebchen/55b6da9ecaa084e349b7796eb98ae5bc to your computer and use it in GitHub Desktop.
Save steebchen/55b6da9ecaa084e349b7796eb98ae5bc to your computer and use it in GitHub Desktop.
user, err := client.User.FindOne().Exec(ctx)

email, ok := user.Email()
if !ok {
  return fmt.Errorf("email is null")
}

log.Printf("User email is set")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment