Skip to content

Automattic/go-gravatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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("foo@example.com")
url := g.GetURL()

Contributors

You? Pull requests welcome.

License

GNU General Public License, version 2

About

Simple go library for building Gravatar Urls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages