Versions in this module Expand all Collapse all v2 v2.12.2 Feb 7, 2015 v2.12.1 Feb 7, 2015 Changes in this version + func NewPlaceholder(name string, escaper ...func(interface{}) string) placeholder.Placeholder + type Buffer struct + func (b *Buffer) Name() string + func (b *Buffer) Print() + func (b *Buffer) Println() + func (b *Buffer) SetString() string + func (bf *Buffer) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Escaper map[string]func(interface{}) string + func (esc Escaper) View(stru interface{}, tag string) *View + type Template struct + func New(name string) *Template + func (r *Template) Replace(setters ...placeholder.Setter) (bf *Buffer) + func (r *Template) ReplaceMixed(mixed ...interface{}) (bf *Buffer) + func (r *Template) ReplaceMixedTo(b *bytes.Buffer, mixed ...interface{}) (bf *Buffer) + func (r *Template) ReplaceTo(b *bytes.Buffer, setters ...placeholder.Setter) (bf *Buffer) + func (t *Template) Add(data ...interface{}) (err error) + func (t *Template) Handle(phs ...placeholder.PlaceholderHandler) http.Handler + func (t *Template) MustAdd(data ...interface{}) *Template + func (t *Template) MustWrite(b []byte) + func (t *Template) MustWriteByte(b byte) + func (t *Template) MustWriteRune(r rune) + func (t *Template) MustWriteSetter(s placeholder.Setter) + func (t *Template) MustWriteString(s string) + func (t *Template) MustWriteTo(w io.Writer) + func (t *Template) New() *Buffer + func (t *Template) Parse() *Template + func (t *Template) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (t *Template) String() string + func (t *Template) WriteSetter(p placeholder.Setter) (err error) + type TemplatePlaceholder struct + Escaper []func(interface{}) string + Value string + func (p TemplatePlaceholder) Name() string + func (p TemplatePlaceholder) Set(val interface{}) placeholder.Setter + func (p TemplatePlaceholder) SetString() string + func (p TemplatePlaceholder) Setf(format string, vals ...interface{}) placeholder.Setter + func (p TemplatePlaceholder) WriteTo(w io.Writer) (int64, error) + type View struct + func (str *View) HasPlaceholder(field string) bool + func (str *View) Placeholder(field string) placeholder.Placeholder + func (str *View) Set(stru interface{}) (ss []placeholder.Setter) + func (str *View) Tag() string + func (str *View) Type() string Other modules containing this package gopkg.in/go-on/lib.v3