Categorygithub.com/gogs/go-libravatar
modulepackage
0.0.0-20191106065024-33a75213d0a0
Repository: https://github.com/gogs/go-libravatar.git
Documentation: pkg.go.dev

# README

Simple golang library for serving federated avatars

[trunk] (https://goreportcard.com/report/strk.kbt.io/projects/go/libravatar)

Use

go get strk.kbt.io/projects/go/libravatar
cd $GOPATH/src/strk.kbt.io/projects/go/libravatar
go doc

Contribute

A clone of the code repository would be downloaded by go get. You can send patches or pull requests to [email protected].

If you need a place to publish your contribution branches, you could start from a fork of the gitlab mirror: https://gitlab.com/strk/go-libravatar

Contacts

# Functions

FromEmail is the object-less call to DefaultLibravatar for an email adders.
FromURL is the object-less call to DefaultLibravatar for a URL.
New instanciates a new Libravatar object (handle).

# Constants

Do not load any image if none is associated with the email hash, instead return an HTTP 404 (File Not Found) response.
a geometric pattern based on an email hash.
a generated 'monster' with different colors, faces, etc.
(mystery-man) a simple, cartoon-style silhouetted outline of a person (does not vary by email hash).
awesome generated, 8-bit arcade-style pixelated faces.
generated faces with differing features and backgrounds.

# Variables

DefaultLibravatar is a default Libravatar object, enabling object-less function calls.

# Structs

Libravatar is an opaque structure holding service configuration.