tmplfile

package
v0.0.0-...-b91b1e7 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: BSD-2-Clause Imports: 4 Imported by: 0

README

Parsing form

Loading template from a file is costly. It is worth holding it in a global var only for this purpose.

src>go test -bench=. ./tmplfiles

Results

go version go1.12 windows/amd64

BenchmarkLoadTemplateFile-4                 3000            376455 ns/op
BenchmarkLoadTemplateFileOnce-4           200000              7170 ns/op
PASS

Documentation

Index

Constants

View Source
const ValueToFind = "value-to-find"

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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