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.1
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 /
fmt /
[ HOME SHELL ]
Name
Size
Permission
Action
doc.go
14.47
KB
-rw-r--r--
errors.go
1.03
KB
-rw-r--r--
errors_test.go
2.35
KB
-rw-r--r--
example_test.go
11.82
KB
-rw-r--r--
export_test.go
219
B
-rw-r--r--
fmt_test.go
56.74
KB
-rw-r--r--
format.go
13.19
KB
-rw-r--r--
gostringer_example_test.go
1.55
KB
-rw-r--r--
print.go
30.18
KB
-rw-r--r--
scan.go
31.99
KB
-rw-r--r--
scan_test.go
39.27
KB
-rw-r--r--
stringer_example_test.go
551
B
-rw-r--r--
stringer_test.go
2.11
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : gostringer_example_test.go
// Copyright 2018 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 fmt_test import ( "fmt" ) // Address has a City, State and a Country. type Address struct { City string State string Country string } // Person has a Name, Age and Address. type Person struct { Name string Age uint Addr *Address } // GoString makes Person satisfy the GoStringer interface. // The return value is valid Go code that can be used to reproduce the Person struct. func (p Person) GoString() string { if p.Addr != nil { return fmt.Sprintf("Person{Name: %q, Age: %d, Addr: &Address{City: %q, State: %q, Country: %q}}", p.Name, int(p.Age), p.Addr.City, p.Addr.State, p.Addr.Country) } return fmt.Sprintf("Person{Name: %q, Age: %d}", p.Name, int(p.Age)) } func ExampleGoStringer() { p1 := Person{ Name: "Warren", Age: 31, Addr: &Address{ City: "Denver", State: "CO", Country: "U.S.A.", }, } // If GoString() wasn't implemented, the output of `fmt.Printf("%#v", p1)` would be similar to // Person{Name:"Warren", Age:0x1f, Addr:(*main.Address)(0x10448240)} fmt.Printf("%#v\n", p1) p2 := Person{ Name: "Theia", Age: 4, } // If GoString() wasn't implemented, the output of `fmt.Printf("%#v", p2)` would be similar to // Person{Name:"Theia", Age:0x4, Addr:(*main.Address)(nil)} fmt.Printf("%#v\n", p2) // Output: // Person{Name: "Warren", Age: 31, Addr: &Address{City: "Denver", State: "CO", Country: "U.S.A."}} // Person{Name: "Theia", Age: 4} }
Close