<commit_before>package prompt_test

import (
	"flag"
	"net/mail"
	"os"

	"github.com/Bowery/prompt"
	"golang.org/x/crypto/bcrypt"
)

func GetPassHash() ([]byte, error) {
	clear, err := prompt.Password("Password")
	if err != nil {
		return nil, err
	}

	return bcrypt.GenerateFromPassword(clear, bcrypt.DefaultCost)
}

func GetEmail() (string, error) {
	email, err := prompt.Prompt("Email")
	if err != nil {
		return "", err
	}

	_, err = mail.ParseAddress(email)
	return email, err
}<commit_msg>Fix godoc examples file<commit_after>package prompt_test

import (
	"flag"
	"net/mail"
	"os"

	"github.com/Bowery/prompt"
	"golang.org/x/crypto/bcrypt"
)

func ExamplePassword() ([]byte, error) {
	clear, err := prompt.Password("Password")
	if err != nil {
		return nil, err
	}

	return bcrypt.GenerateFromPassword(clear, bcrypt.DefaultCost)
}

func ExamplePrompt() (string, error) {
	email, err := prompt.Prompt("Email")
	if err != nil {
		return "", err
	}

	_, err = mail.ParseAddress(email)
	return email, err
}
{'fraction_non_alphanumeric': 0.15460852329038652, 'fraction_numerical': 0.0, 'mean_word_length': 4.260416666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6090963', 'n_tokens_mistral': 389, 'n_tokens_neox': 371, 'n_words': 85}