benchmark

package
v3.2.9+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2015 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL