Documentation ¶
Overview ¶
It is recommend to use this way
cacheDir := "./cache" defaultImg := "./default.jpg" http.Handle("/avatar/", avatar.CacheServer(cacheDir, defaultImg))
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheServer ¶
http.Handle("/avatar/", avatar.CacheServer("./cache"))
func RandomImage ¶ added in v0.6.5
RandomImage generates and returns a random avatar image.
func UpdateGravatarSource ¶ added in v0.5.13
func UpdateGravatarSource()
Types ¶
Click to show internal directories.
Click to hide internal directories.