func GetAvatarURL(scheme, emailHash string, opts ...interface{}) *url.URL {
	url := &url.URL{
		Scheme: scheme,
		Host:   gravatarHost,
		Path:   "/avatar/" + emailHash,
	}
	return SetAvatarURLOptions(url, opts...)
}
GetAvatarURL returns an URL to avatar image.

Optional arguments include Default* (default actions), image size and
Rating* (rating level, default is RatingG).

Instead of Default* predefined constants you may also use a direct URL to an
image.
package gravatar
import (
	"crypto/md5"
	"encoding/json"
	"errors"
	"fmt"
	"io"
	"io/ioutil"
	"net/http"
	"net/url"
	"strconv"
	"strings"
)
type GravatarProfile struct {
	AboutMe string
	Accounts []struct {
		ShortName string
		Domain    string
		Url       string
		Verified  bool `json:",string"`
		Username  string
		Display   string
	}
	CurrentLocation string
	DisplayName string
	Emails []struct {
		Primary bool `json:",string"`
		Value   string
	}
	Hash string
	Id int `json:",string"`
	Ims []struct {
		Type  string
		Value string
	}
	Name struct {
		Family    string
		Formatted string
		Given     string
	}
	PhoneNumbers []struct {
		Type  string
		Value string
	}
	Photos []struct {
		Type  string
		Value string
	}
	PreferredUsername string
	ProfileBackground struct {
		Color    string
		Position string
		Repeat   string
		Url      string
	}
	ProfileUrl string
	ThumbnailUrl string
	Urls []struct {
		Title string
		Value string
	}
}
type rating string
const gravatarHost = "gravatar.com"
const (
	DefaultBlank = "blank"
	DefaultError = "404"
	DefaultIdentIcon = "identicon"
	DefaultMonster = "monsterid"
	DefaultMysteryMan = "mm"
	DefaultRetro = "retro"
	DefaultWavatar = "wavatar"
)
const (
	RatingG = rating("g")
	RatingPG = rating("pg")
	RatingR = rating("r")
	RatingX = rating("x")
)
var client = new(http.Client)
func EmailHash(email string) string {
	m := md5.New()
	io.WriteString(m, strings.ToLower(email))
	return fmt.Sprintf("%x", m.Sum(nil))
}
func GetAvatar(scheme, emailHash string, opts ...interface{}) (data []byte, err error) {
	url := GetAvatarURL(scheme, emailHash, opts...)
	err = run(url, get_avatar(&data))
	return
}