diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-12-10 08:02:15 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-12-12 09:59:34 +0100 |
commit | 167c01530bb295c8b8d35921eb27ffa5bee76dfe (patch) | |
tree | 338ba8c18bf8533bb0fec5506a12e78b656d6723 /tpl/strings | |
parent | 4c804319f6db0b8459cc9b5df4a904fd2c55dedd (diff) |
Create lightweight forks of text/template and html/template
This commit also removes support for Ace and Amber templates.
Updates #6594
Diffstat (limited to 'tpl/strings')
-rw-r--r-- | tpl/strings/strings.go | 1 | ||||
-rw-r--r-- | tpl/strings/strings_test.go | 1 | ||||
-rw-r--r-- | tpl/strings/truncate.go | 1 | ||||
-rw-r--r-- | tpl/strings/truncate_test.go | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/tpl/strings/strings.go b/tpl/strings/strings.go index 91d533af9..e807fe6fa 100644 --- a/tpl/strings/strings.go +++ b/tpl/strings/strings.go @@ -18,6 +18,7 @@ import ( "errors" "fmt" "html/template" + _strings "strings" "unicode/utf8" diff --git a/tpl/strings/strings_test.go b/tpl/strings/strings_test.go index e852fd51f..2fc3dc028 100644 --- a/tpl/strings/strings_test.go +++ b/tpl/strings/strings_test.go @@ -15,6 +15,7 @@ package strings import ( "html/template" + "testing" qt "github.com/frankban/quicktest" diff --git a/tpl/strings/truncate.go b/tpl/strings/truncate.go index 6e3a50ed2..ff863db7c 100644 --- a/tpl/strings/truncate.go +++ b/tpl/strings/truncate.go @@ -17,6 +17,7 @@ import ( "errors" "html" "html/template" + "regexp" "unicode" "unicode/utf8" diff --git a/tpl/strings/truncate_test.go b/tpl/strings/truncate_test.go index 31c7028b5..b4aa1ffad 100644 --- a/tpl/strings/truncate_test.go +++ b/tpl/strings/truncate_test.go @@ -15,6 +15,7 @@ package strings import ( "html/template" + "reflect" "strings" "testing" |