Versions in this module Expand all Collapse all v0 v0.0.4 Jun 26, 2016 Changes in this version + func OnlyPath(path string) v0.0.3 Jun 25, 2016 v0.0.2 Jun 25, 2016 Changes in this version + const Version + func AppendFontPath(path string) + type Avatar struct + Background string + Color string + Ext string + Font string + FontSize int + Size int + func NewAvatar(text string) *Avatar + func (a *Avatar) Key() string + func (a *Avatar) Svg() string + func (a *Avatar) Text(text string) *Avatar + func (a *Avatar) Valid() bool + type Color struct + B float64 + G float64 + R float64 + func (col Color) RGBA() (r, g, b, a uint32) + type Drawer struct + func NewDrawer(avatar *Avatar) (*Drawer, error) + func (d *Drawer) Draw() (image.Image, error) + func (d *Drawer) DrawToBytes(encoding ...string) ([]byte, error) + func (d *Drawer) DrawToWriter(w io.Writer, encoding ...string) error + type LRUCache struct + func NewLRUCache(maxSize int) *LRUCache + func (cache *LRUCache) Delete(key string) (val interface{}, existed bool) + func (cache *LRUCache) Get(key string) (val interface{}, ok bool) + func (cache *LRUCache) Len() int + func (cache *LRUCache) MaxSize() int + func (cache *LRUCache) Set(key string, val interface{})