Documentation ¶ Index ¶ func NewTemplate() *t type Bytes func (ø *Bytes) Parse(s string) func (ø *Bytes) Replace() (r []byte) type Naive func (ø *Naive) Replace() (s string) type Naive2 func (ø *Naive2) Replace() (s string) type Regexp func (ø *Regexp) Replace() string func (ø *Regexp) Setup() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewTemplate ¶ func NewTemplate() *t Types ¶ type Bytes ¶ type Bytes struct { Map map[string][]byte Buffer *bytes.Buffer } func (*Bytes) Parse ¶ func (ø *Bytes) Parse(s string) func (*Bytes) Replace ¶ func (ø *Bytes) Replace() (r []byte) type Naive ¶ type Naive struct { Map map[string]string Template string } func (*Naive) Replace ¶ func (ø *Naive) Replace() (s string) type Naive2 ¶ type Naive2 struct { Replacements []string Template string } func (*Naive2) Replace ¶ func (ø *Naive2) Replace() (s string) type Regexp ¶ type Regexp struct { Regexp *regexp.Regexp Map map[string]string Replacer func(string) string Template string } func (*Regexp) Replace ¶ func (ø *Regexp) Replace() string func (*Regexp) Setup ¶ func (ø *Regexp) Setup() Source Files ¶ View all Source files bytes.go naive.go regexp.go replacer.go template.go Click to show internal directories. Click to hide internal directories.