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 /
go /
types /
testdata /
[ HOME SHELL ]
Name
Size
Permission
Action
blank.src
203
B
-rw-r--r--
builtins.src
23.77
KB
-rw-r--r--
const0.src
8.32
KB
-rw-r--r--
const1.src
8.04
KB
-rw-r--r--
constdecl.src
3.02
KB
-rw-r--r--
conversions.src
1.71
KB
-rw-r--r--
conversions2.src
5.07
KB
-rw-r--r--
cycles.src
2.79
KB
-rw-r--r--
cycles1.src
781
B
-rw-r--r--
cycles2.src
1.21
KB
-rw-r--r--
cycles3.src
675
B
-rw-r--r--
cycles4.src
1.76
KB
-rw-r--r--
cycles5.src
2.91
KB
-rw-r--r--
decls0.src
3.91
KB
-rw-r--r--
decls1.src
3.57
KB
-rw-r--r--
decls2a.src
3.11
KB
-rw-r--r--
decls2b.src
1.87
KB
-rw-r--r--
decls3.src
4.17
KB
-rw-r--r--
decls4.src
2.99
KB
-rw-r--r--
decls5.src
363
B
-rw-r--r--
errors.src
1.9
KB
-rw-r--r--
expr0.src
3.39
KB
-rw-r--r--
expr1.src
2.57
KB
-rw-r--r--
expr2.src
4.63
KB
-rw-r--r--
expr3.src
14.87
KB
-rw-r--r--
gotos.src
5.77
KB
-rw-r--r--
importC.src
1.21
KB
-rw-r--r--
importdecl0a.src
1.24
KB
-rw-r--r--
importdecl0b.src
1000
B
-rw-r--r--
importdecl1a.src
521
B
-rw-r--r--
importdecl1b.src
260
B
-rw-r--r--
init0.src
1.91
KB
-rw-r--r--
init1.src
1.46
KB
-rw-r--r--
init2.src
3.51
KB
-rw-r--r--
issue23203a.src
306
B
-rw-r--r--
issue23203b.src
306
B
-rw-r--r--
issue25008a.src
260
B
-rw-r--r--
issue25008b.src
198
B
-rw-r--r--
issue26390.src
241
B
-rw-r--r--
issue28251.src
1.23
KB
-rw-r--r--
issue6977.src
2.33
KB
-rw-r--r--
issues.src
9.83
KB
-rw-r--r--
labels.src
3.25
KB
-rw-r--r--
literals.src
2.35
KB
-rw-r--r--
methodsets.src
3.16
KB
-rw-r--r--
shifts.src
12.02
KB
-rw-r--r--
stmt0.src
17.79
KB
-rw-r--r--
stmt1.src
3.31
KB
-rw-r--r--
vardecl.src
5.27
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : vardecl.src
// Copyright 2013 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 vardecl // Prerequisites. import "math" func f() {} func g() (x, y int) { return } var m map[string]int // Var decls must have a type or an initializer. var _ int var _, _ int // The first error message is produced by the parser. // In a real-world scenario, the type-checker would not be run // in this case and the 2nd error message would not appear. var _ /* ERROR "missing variable type" */ /* ERROR "missing type or init expr" */ var _ /* ERROR "missing variable type" */ /* ERROR "missing type or init expr" */, _ var _ /* ERROR "missing variable type" */ /* ERROR "missing type or init expr" */, _, _ // The initializer must be an expression. var _ = int /* ERROR "not an expression" */ var _ = f /* ERROR "used as value" */ () // Identifier and expression arity must match. var _, _ = 1, 2 var _ = 1, 2 /* ERROR "extra init expr 2" */ var _, _ = 1 /* ERROR "cannot initialize [0-9]+ variables with [0-9]+ values" */ var _, _, _ /* ERROR "missing init expr for _" */ = 1, 2 var _ = g /* ERROR "2-valued g" */ () var _, _ = g() var _, _, _ = g /* ERROR "cannot initialize [0-9]+ variables with [0-9]+ values" */ () var _ = m["foo"] var _, _ = m["foo"] var _, _, _ = m /* ERROR "cannot initialize [0-9]+ variables with [0-9]+ values" */ ["foo"] var _, _ int = 1, 2 var _ int = 1, 2 /* ERROR "extra init expr 2" */ var _, _ int = 1 /* ERROR "cannot initialize [0-9]+ variables with [0-9]+ values" */ var _, _, _ /* ERROR "missing init expr for _" */ int = 1, 2 var ( _, _ = 1, 2 _ = 1, 2 /* ERROR "extra init expr 2" */ _, _ = 1 /* ERROR "cannot initialize [0-9]+ variables with [0-9]+ values" */ _, _, _ /* ERROR "missing init expr for _" */ = 1, 2 _ = g /* ERROR "2-valued g" */ () _, _ = g() _, _, _ = g /* ERROR "cannot initialize [0-9]+ variables with [0-9]+ values" */ () _ = m["foo"] _, _ = m["foo"] _, _, _ = m /* ERROR "cannot initialize [0-9]+ variables with [0-9]+ values" */ ["foo"] _, _ int = 1, 2 _ int = 1, 2 /* ERROR "extra init expr 2" */ _, _ int = 1 /* ERROR "cannot initialize [0-9]+ variables with [0-9]+ values" */ _, _, _ /* ERROR "missing init expr for _" */ int = 1, 2 ) // Variables declared in function bodies must be 'used'. type T struct{} func (r T) _(a, b, c int) (u, v, w int) { var x1 /* ERROR "declared but not used" */ int var x2 /* ERROR "declared but not used" */ int x1 = 1 (x2) = 2 y1 /* ERROR "declared but not used" */ := 1 y2 /* ERROR "declared but not used" */ := 2 y1 = 1 (y1) = 2 { var x1 /* ERROR "declared but not used" */ int var x2 /* ERROR "declared but not used" */ int x1 = 1 (x2) = 2 y1 /* ERROR "declared but not used" */ := 1 y2 /* ERROR "declared but not used" */ := 2 y1 = 1 (y1) = 2 } if x /* ERROR "declared but not used" */ := 0; a < b {} switch x /* ERROR "declared but not used" */, y := 0, 1; a { case 0: _ = y case 1: x /* ERROR "declared but not used" */ := 0 } var t interface{} switch t /* ERROR "declared but not used" */ := t.(type) {} switch t /* ERROR "declared but not used" */ := t.(type) { case int: } switch t /* ERROR "declared but not used" */ := t.(type) { case int: case float32, complex64: t = nil } switch t := t.(type) { case int: case float32, complex64: _ = t } switch t := t.(type) { case int: case float32: case string: _ = func() string { return t } } switch t := t; t /* ERROR "declared but not used" */ := t.(type) {} var z1 /* ERROR "declared but not used" */ int var z2 int _ = func(a, b, c int) (u, v, w int) { z1 = a (z1) = b a = z2 return } var s []int var i /* ERROR "declared but not used" */ , j int for i, j = range s { _ = j } for i, j /* ERROR "declared but not used" */ := range s { _ = func() int { return i } } return } // Unused variables in function literals must lead to only one error (issue #22524). func _() { _ = func() { var x /* ERROR declared but not used */ int } } // Invalid (unused) expressions must not lead to spurious "declared but not used errors" func _() { var a, b, c int var x, y int x, y = a /* ERROR cannot assign [0-9]+ values to [0-9]+ variables */ , b, c _ = x _ = y } func _() { var x int return x /* ERROR no result values expected */ return math /* ERROR no result values expected */ .Sin(0) } func _() int { var x, y int return /* ERROR wrong number of return values */ x, y } // Short variable declarations must declare at least one new non-blank variable. func _() { _ := /* ERROR no new variables */ 0 _, a := 0, 1 _, a := /* ERROR no new variables */ 0, 1 _, a, b := 0, 1, 2 _, _, _ := /* ERROR no new variables */ 0, 1, 2 _ = a _ = b } // Test case for variables depending on function literals (see also #22992). var A /* ERROR initialization cycle */ = func() int { return A }() func _() { // The function literal below must not see a. var a = func() int { return a /* ERROR "undeclared name" */ }() var _ = func() int { return a }() // The function literal below must not see x, y, or z. var x, y, z = 0, 1, func() int { return x /* ERROR "undeclared name" */ + y /* ERROR "undeclared name" */ + z /* ERROR "undeclared name" */ }() _, _, _ = x, y, z } // TODO(gri) consolidate other var decl checks in this file
Close