Imports github.com/astaxie/beego/cache github.com/astaxie/beego/logs github.com/astaxie/beego/context github.com/astaxie/beego github.com/astaxie/beego/utils Standard library imports crypto/rand encoding/binary time image/png image image/color bytes html/template fmt io math net/http path strings sync