Linux id-dci-web1980.main-hosting.eu 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64
LiteSpeed
: 153.92.8.146 | : 216.73.217.22
Cant Read [ /etc/named.conf ]
8.3.30
u610877233
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
opt /
golang /
1.22.0 /
src /
encoding /
xml /
[ HOME SHELL ]
Name
Size
Permission
Action
atom_test.go
1.58
KB
-rw-r--r--
example_marshaling_test.go
1.49
KB
-rw-r--r--
example_test.go
3.72
KB
-rw-r--r--
example_text_marshaling_test.g...
1.39
KB
-rw-r--r--
marshal.go
31.23
KB
-rw-r--r--
marshal_test.go
66.01
KB
-rw-r--r--
read.go
22.4
KB
-rw-r--r--
read_test.go
29.13
KB
-rw-r--r--
typeinfo.go
9.57
KB
-rw-r--r--
xml.go
47.11
KB
-rw-r--r--
xml_test.go
36.36
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : example_text_marshaling_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 xml_test import ( "encoding/xml" "fmt" "log" "strings" ) type Size int const ( Unrecognized Size = iota Small Large ) func (s *Size) UnmarshalText(text []byte) error { switch strings.ToLower(string(text)) { default: *s = Unrecognized case "small": *s = Small case "large": *s = Large } return nil } func (s Size) MarshalText() ([]byte, error) { var name string switch s { default: name = "unrecognized" case Small: name = "small" case Large: name = "large" } return []byte(name), nil } func Example_textMarshalXML() { blob := ` <sizes> <size>small</size> <size>regular</size> <size>large</size> <size>unrecognized</size> <size>small</size> <size>normal</size> <size>small</size> <size>large</size> </sizes>` var inventory struct { Sizes []Size `xml:"size"` } if err := xml.Unmarshal([]byte(blob), &inventory); err != nil { log.Fatal(err) } counts := make(map[Size]int) for _, size := range inventory.Sizes { counts[size] += 1 } fmt.Printf("Inventory Counts:\n* Small: %d\n* Large: %d\n* Unrecognized: %d\n", counts[Small], counts[Large], counts[Unrecognized]) // Output: // Inventory Counts: // * Small: 3 // * Large: 2 // * Unrecognized: 3 }
Close