Skip to content

ivanmrchk/gravatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Gravatar

Gravatar is a golang package for gravatar.com

A freakishly light library for gravatar images.
What is Gravatar.com

Your Gravatar is an image that follows you from site to site appearing beside your name when you do things like comment or post on a blog. Avatars help identify your posts on blogs and web forums, so why not on any site?

Developers use gravatar images to bring to life user database or contacts in their apps. All you need to have to get a gravatar image is an email. If an email address is not registered at gravatar.com, then the user with that email address will have a funky looking image.

What does this package do?

This is a very small and timy package compared to some other ones, it has only two functions.

  • GetHash() - will return only the hash
  • GetImg() - will return a complete url to the image.

Usage

First run go get

$ go get github.com/ivanmrchk/gravatar

Import it into your project

Example:

func main() {

	x := gravatar.GetImg("example@example.com")
}

This will return such string: http://www.gravatar.com/avatar/23463b99b62a72f26ed677cc556c44e8?d=identicon

Info

This package comes with doc.go file.

License

MIT

Free Software, Hell Yeah!

About

Golang package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages