Documentation ¶
Overview ¶
Package avatar is capable of generating a user icon from a string with information from the user. The information is hashed before is used to generate the icon, so that sensible information can be used without security issues.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GimmeAnAvatarGenerator ¶
func GimmeAnAvatarGenerator() *avatarGenerator
GimmieAnAvatarGenerator returns the pointer to an avatarGenerator. Was replaced by NewAvatarGenerator, but is keept here for backwards compatibilities
func NewAvatarGenerator ¶ added in v1.1.0
func NewAvatarGenerator() *avatarGenerator
NewAvatarGenerator returns the pointer to an avatarGenerator.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package encoder provides a structure type called encoder, which implements the infoEncoder interface.
|
Package encoder provides a structure type called encoder, which implements the infoEncoder interface. |
Package images provides a structure type called icon, which implements the imageGen interface.
|
Package images provides a structure type called icon, which implements the imageGen interface. |
Click to show internal directories.
Click to hide internal directories.