Versions in this module Expand all Collapse all v0 v0.1.0 Jan 28, 2016 Changes in this version + const JSON + const PLAIN + const XML + var ENV = cli.StringFlag + func AppendSalt(src, salt []byte) []byte + func Check() error + func Csha512(d string, p []byte) (bool, error) + func EnvAction(act func(env string, c *cli.Context) error) func(c *cli.Context) + func Equal(src []byte, dst []byte) bool + func FromBase64(s string) ([]byte, error) + func FromBits(data []byte, obj interface{}) error + func FromHex(s string) ([]byte, error) + func FromJson(j []byte, o interface{}) error + func FromToml(f string, v interface{}) error + func FuncName(f interface{}) string + func Get(name string) interface + func In(objects ...interface{}) error + func Loop(fn func(Engine) error) error + func Md2Hm(md []byte) ([]byte, error) + func Md5(p []byte) string + func Mkdirs(d string, m os.FileMode) error + func NewAesCipher(key []byte) (cipher.Block, error) + func NewHmacHash() func() hash.Hash + func ParseSalt(src []byte, length int) ([]byte, []byte) + func PkgRoot(o interface{}) string + func RandomBytes(n int) ([]byte, error) + func Register(ens ...Engine) + func Run() error + func Sha512(p []byte) string + func Shell(cmd string, args ...string) error + func Ssha512(p []byte, l int) (string, error) + func ToBase64(b []byte) string + func ToBits(obj interface{}) ([]byte, error) + func ToHex(bs []byte) string + func ToJson(o interface{}) ([]byte, error) + func ToToml(f string, v interface{}) error + func Use(objects map[string]interface{}) error + func Uuid() string + type Aes struct + Cip cipher.Block + func (p *Aes) Decrypt(sr []byte) ([]byte, error) + func (p *Aes) Encrypt(pn []byte) ([]byte, error) + type Controller struct + func (p *Controller) Abort(w http.ResponseWriter, e error) + func (p *Controller) Forbidden(w http.ResponseWriter) + func (p *Controller) Html(w http.ResponseWriter, body string) + func (p *Controller) Locale(r *http.Request) string + func (p *Controller) NotFound(w http.ResponseWriter) + func (p *Controller) Pager(r *render.Render, w http.ResponseWriter, pg *Pager, i interface{}) + type Engine interface + Asserts func() []*Template + Migrate func() + Mount func(Router) + Rss func() rss.Handler + Seed func() error + Shell func() []cli.Command + Sitemap func() sitemap.Handler + type Hmac struct + Fn func() hash.Hash + Key []byte + func (p *Hmac) Equal(src, dst []byte) bool + func (p *Hmac) Sum(src []byte) []byte + type Model struct + CreatedAt time.Time + ID uint + UpdatedAt time.Time + type Pager struct + Count int + Page int + Size int + Total int + func NewPager(max int) *Pager + func (p *Pager) Parse(r *http.Request) (int, int, int) + func (p *Pager) SetTotal(total int) int + func (p *Pager) To() map[string]int + type Router interface + DELETE func(string, httprouter.Handle) + GET func(string, httprouter.Handle) + PATCH func(string, httprouter.Handle) + POST func(string, httprouter.Handle) + PUT func(string, httprouter.Handle) + ServeFiles func(string, http.FileSystem) + type Template struct + Htm string + Lang string + Payload interface{} + Tpl string