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 ¶
RandomImage generates and returns a random avatar image.
func UpdateGravatarSource ¶
func UpdateGravatarSource()
Types ¶
Click to show internal directories.
Click to hide internal directories.