Categorygithub.com/automattic/go-gravatar
repositorypackage
0.0.0-20210818030622-453d3c921ea3
Repository: https://github.com/automattic/go-gravatar.git
Documentation: pkg.go.dev

# README

go-gravatar

Simple go library to interact with Gravatar.

Installation

$ go get github.com/automattic/go-gravatar

Usage

If you already have the hash, build a new Gravatar object and generate its url like so:

g := NewGravatar()
g.Hash = "hash-goes-here"
url := g.GetURL()

If you have an email address:

g := NewGravatarFromEmail("[email protected]")
url := g.GetURL()

Contributors

You? Pull requests welcome.

License

GNU General Public License, version 2