Socket
Socket
Sign inDemoInstall

github.com/drexedam/gravatar

Package Overview
Dependencies
0
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/drexedam/gravatar


Version published

Readme

Source

gravatar

A Go wrapper for Gravatar

GoDoc Go Report Card Build Status

Install

go get -u github.com/drexedam/gravatar

Examples

Profile URL

url := gravatar.New("mail@example.org").URL()

Avatar URL with parameters

url := gravatar.New("mail@example.org").
		Size(200).
		Default(gravatar.NotFound).
		Rating(gravatar.Pg).
		AvatarURL()

Avatar URL with default image

url := gravatar.New("mail@example.org").
        DefaultURL("http://example.org/image.png").
        AvatarURL()

Force default avatar

url := gravatar.New("mail@example.org").ForceDefault(true).AvatarURL()

JSON profile data URL

url := gravatar.New("mail@example.org").JSONURL()

JSON profile data URL with callback

url := gravatar.New("mail@example.org").JSONURLCallback("alert")

Parsed profile data

profile, err := gravatar.New("mail@example.org").Profiles()

License

MIT licensed. See the LICENSE file for details.

FAQs

Last updated on 27 Mar 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc