Versions in this module Expand all Collapse all v0 v0.0.2 Mar 26, 2021 v0.0.1 Mar 6, 2021 Changes in this version + var Base64 = NewHtmlEncoder(base64.StdEncoding) + var PlotlyBase64 = NewHtmlPlotlyEncoder(base64.StdEncoding) + func EncodeFile(e Encoder, vf path.ValidFile) (b []byte, err error) + func EncodeTo(e Encoder, r io.Reader) (b []byte, err error) + func ExtensionToType(ext string) (extType string, err error) + type Bytes struct + type CachedFileEncoder struct + func (c *CachedFileEncoder) EncodeFile(vf path.ValidFile) (s string, err error) + type Capture struct + func (c Capture) Set() + type CaptureFn func() + type Doc struct + Title string + func New() (d Doc) + func (_ Doc) Indices(stop int) (ind Indices) + func (_ Doc) NewFileLoader(args ...string) (l Loader) + func (_ Doc) NewPath(args ...string) (p path.Path) + func (d Doc) Base64Encoder(args ...string) (le LoadEncoder) + func (d Doc) Date() (s string) + func (d Doc) DateWithFmt(layout string) (s string) + func (d Doc) WithTitle(title string) (D Doc) + type EncodeCache struct + func NewEncodeCache() (e EncodeCache) + func (e *EncodeCache) Get(p path.ValidFile) (s string, ok bool) + func (e *EncodeCache) Set(p path.ValidFile, s string) + func (e EncodeCache) WithEncoder(fe FileEncoder) (cf CachedFileEncoder) + type EncodedFiles map[path.ValidFile]string + type Encoder interface + Encode func(dst, src []byte) + EncodedLen func(n int) int + type ErrorHandler interface + Handle func(ctx *fasthttp.RequestCtx) + type ErrorTemplate struct + func NewErrorTemplate(template *jet.Template) (e ErrorTemplate) + func (et ErrorTemplate) NewHandler(h Handler) (eh ErrorTemplateHandler) + type ErrorTemplateHandler struct + func (e ErrorTemplateHandler) Handle(ctx *fasthttp.RequestCtx) + type FileEncoder interface + EncodeFile func(vf path.ValidFile) (s string, err error) + func NoOpEncoder() (f FileEncoder) + type FuncMap map[string]jet.Func + type Getter interface + Get func() error + type Handler interface + Handle func(*fasthttp.RequestCtx) error + type HtmlEncoder struct + func NewHtmlEncoder(enc Encoder) (h HtmlEncoder) + func (h HtmlEncoder) EncodeFile(vf path.ValidFile) (s string, err error) + type HtmlEncoderPlotly struct + func NewHtmlPlotlyEncoder(enc Encoder) (p HtmlEncoderPlotly) + func (p HtmlEncoderPlotly) EncodeFile(vf path.ValidFile) (s string, err error) + type Indices struct + func (in Indices) Iter() (it *Iter) + func (in Indices) Start(start int) (ind Indices) + func (in Indices) Step(step int) (ind Indices) + func (in Indices) Stop(stop int) (ind Indices) + type Iter struct + func (it *Iter) Range() (reflect.Value, reflect.Value, bool) + type LabelIndex struct + func NewLabels() (li LabelIndex) + func (li *LabelIndex) Add(key string) + func (li *LabelIndex) AddIdx(key string, idx int) + func (li LabelIndex) Get(key string) (idx int, err error) + func (li LabelIndex) Iter() (d dict) + type LoadEncoder struct + func (le LoadEncoder) Encode(args ...string) (str StringResult) + type Loader struct + func (l Loader) Join(args ...string) (ll Loader) + func (l Loader) Retreive(args ...string) (p Path) + func (l Loader) WithEncoder(f FileEncoder) (le LoadEncoder) + type Mode int + const Localhost + type NoEncode struct + func (_ NoEncode) EncodeFile(vf path.ValidFile) (s string, err error) + type NoMatchingClass struct + Extension string + func (e NoMatchingClass) Error() (s string) + type Path struct + func (p *Path) TryFrom(systemPath path.Like) + type Port struct + func (p *Port) Default() + func (p *Port) SetCli(c *cli.Cli) + func (p Port) HostName() (s string) + func (p Port) Localhost() (address string) + func (p Port) Prepend(s string) (address string) + type Render struct + Views *jet.Set + func (r Render) Handle(ctx *fasthttp.RequestCtx) (err error) + type RenderBuilder struct + Templates path.Dir + func NewRenderBuilder() (r RenderBuilder) + func (r *RenderBuilder) AddFunc(name string, f jet.Func) + func (r *RenderBuilder) Default() + func (r *RenderBuilder) SetCli(c *cli.Cli) + func (r RenderBuilder) Build() (rr Render) + type Status struct + Err error + func (s *Status) From(g Getter) (b bool) + func (s *Status) Set(err error) + func (s Status) Get() (err error) + func (s Status) IsErr() (b bool) + func (s Status) Use(err *error) CaptureFn + type String string + const KeyError + func (s String) Error() (ss string) + func (s String) Format(args ...interface{}) (ss String) + type StringResult struct + func OkString(s string) (sr StringResult) + func (str StringResult) String() (s string) + type Template interface + Execute func(io.Writer, interface{}) error + type TemplateRender struct + func (t *TemplateRender) Default() + func (t *TemplateRender) SetCli(c *cli.Cli) + func (t TemplateRender) Run() (err error) + type TemplateServer struct + Builder RenderBuilder + func (t *TemplateServer) Default() + func (ts *TemplateServer) SetCli(c *cli.Cli) + func (ts TemplateServer) Run() (err error) + func (ts TemplateServer) Setup() (r Render, rout *router.Router, err error) + type TemplateSet interface + GetTemplate func(string) (Template, error)