package
Version:
v0.0.0-...-b91b1e7
Opens a new window with list of versions in this module.
Published: Sep 24, 2019
License: BSD-2-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
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
¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.