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 /
testdata /
script /
[ HOME SHELL ]
Name
Size
Permission
Action
README
11.1
KB
-rw-r--r--
bug.txt
815
B
-rw-r--r--
build_GOTMPDIR.txt
352
B
-rw-r--r--
build_acl_windows.txt
1.32
KB
-rw-r--r--
build_cache_arch_mode.txt
359
B
-rw-r--r--
build_cache_compile.txt
430
B
-rw-r--r--
build_cache_gomips.txt
859
B
-rw-r--r--
build_cache_link.txt
644
B
-rw-r--r--
build_cache_output.txt
1.99
KB
-rw-r--r--
build_cache_trimpath.txt
871
B
-rw-r--r--
build_exe.txt
518
B
-rw-r--r--
build_gcflags.txt
442
B
-rw-r--r--
build_i.txt
1012
B
-rw-r--r--
build_import_comment.txt
1.01
KB
-rw-r--r--
build_import_cycle.txt
240
B
-rw-r--r--
build_multi_main.txt
699
B
-rw-r--r--
build_nocache.txt
1.19
KB
-rw-r--r--
build_plugin_non_main.txt
351
B
-rw-r--r--
build_relative_pkgdir.txt
192
B
-rw-r--r--
build_relative_tmpdir.txt
410
B
-rw-r--r--
build_runtime_gcflags.txt
349
B
-rw-r--r--
build_trimpath.txt
3.66
KB
-rw-r--r--
cache_unix.txt
830
B
-rw-r--r--
cache_vet.txt
712
B
-rw-r--r--
cgo_asm_error.txt
321
B
-rw-r--r--
cgo_syso_issue29253.txt
441
B
-rw-r--r--
clean_testcache.txt
585
B
-rw-r--r--
cmd_import_error.txt
491
B
-rw-r--r--
cover_atomic_pkgall.txt
316
B
-rw-r--r--
cover_cgo.txt
381
B
-rw-r--r--
cover_cgo_extra_file.txt
528
B
-rw-r--r--
cover_cgo_extra_test.txt
552
B
-rw-r--r--
cover_cgo_xtest.txt
422
B
-rw-r--r--
cover_import_main_loop.txt
516
B
-rw-r--r--
cover_mod_empty.txt
176
B
-rw-r--r--
cover_modes.txt
669
B
-rw-r--r--
cover_pattern.txt
635
B
-rw-r--r--
cover_pkgall_multiple_mains.tx...
883
B
-rw-r--r--
cover_pkgall_runtime.txt
305
B
-rw-r--r--
cpu_profile_twice.txt
391
B
-rw-r--r--
devnull.txt
525
B
-rw-r--r--
doc.txt
1.2
KB
-rw-r--r--
env_write.txt
3.33
KB
-rw-r--r--
fileline.txt
201
B
-rw-r--r--
fmt_load_errors.txt
295
B
-rw-r--r--
gccgo_m.txt
315
B
-rw-r--r--
gccgo_mangle.txt
137
B
-rw-r--r--
gcflags_patterns.txt
2.17
KB
-rw-r--r--
generate_bad_imports.txt
246
B
-rw-r--r--
get_404_meta.txt
277
B
-rw-r--r--
get_brace.txt
1.33
KB
-rw-r--r--
get_dotfiles.txt
1.6
KB
-rw-r--r--
get_insecure_redirect.txt
394
B
-rw-r--r--
get_tilde.txt
779
B
-rw-r--r--
get_unicode.txt
1.25
KB
-rw-r--r--
get_with_git_trace.txt
139
B
-rw-r--r--
goflags.txt
1.34
KB
-rw-r--r--
gopath_install.txt
1.6
KB
-rw-r--r--
gopath_local.txt
2.94
KB
-rw-r--r--
gopath_moved_repo.txt
1.69
KB
-rw-r--r--
gopath_paths.txt
1.05
KB
-rw-r--r--
gopath_std_vendor.txt
1.36
KB
-rw-r--r--
gopath_vendor_dup_err.txt
391
B
-rw-r--r--
help.txt
1.17
KB
-rw-r--r--
import_main.txt
1.71
KB
-rw-r--r--
install_cleans_build.txt
507
B
-rw-r--r--
install_cmd_gobin.txt
370
B
-rw-r--r--
install_cross_gobin.txt
633
B
-rw-r--r--
install_rebuild_gopath.txt
465
B
-rw-r--r--
install_rebuild_removed.txt
688
B
-rw-r--r--
link_syso_issue33139.txt
1.16
KB
-rw-r--r--
linkname.txt
210
B
-rw-r--r--
list_ambiguous_path.txt
1.06
KB
-rw-r--r--
list_bad_import.txt
2.13
KB
-rw-r--r--
list_compiled_imports.txt
681
B
-rw-r--r--
list_constraints.txt
1.71
KB
-rw-r--r--
list_find.txt
748
B
-rw-r--r--
list_importmap.txt
939
B
-rw-r--r--
list_linkshared.txt
297
B
-rw-r--r--
list_parse_err.txt
266
B
-rw-r--r--
list_split_main.txt
439
B
-rw-r--r--
list_std.txt
693
B
-rw-r--r--
list_test_e.txt
239
B
-rw-r--r--
list_test_err.txt
2.67
KB
-rw-r--r--
list_test_imports.txt
465
B
-rw-r--r--
list_test_non_go_files.txt
306
B
-rw-r--r--
list_wildcard_skip_nonmatching...
282
B
-rw-r--r--
mod_alt_goroot.txt
535
B
-rw-r--r--
mod_ambiguous_import.txt
1.48
KB
-rw-r--r--
mod_auth.txt
744
B
-rw-r--r--
mod_bad_domain.txt
1.1
KB
-rw-r--r--
mod_bad_filenames.txt
568
B
-rw-r--r--
mod_build_info_err.txt
448
B
-rw-r--r--
mod_build_tags.txt
538
B
-rw-r--r--
mod_build_versioned.txt
346
B
-rw-r--r--
mod_cache_rw.txt
2.01
KB
-rw-r--r--
mod_case.txt
409
B
-rw-r--r--
mod_case_cgo.txt
94
B
-rw-r--r--
mod_clean_cache.txt
1.78
KB
-rw-r--r--
mod_concurrent.txt
785
B
-rw-r--r--
mod_convert_dep.txt
912
B
-rw-r--r--
mod_convert_git.txt
614
B
-rw-r--r--
mod_convert_glide.txt
460
B
-rw-r--r--
mod_convert_glockfile.txt
458
B
-rw-r--r--
mod_convert_godeps.txt
479
B
-rw-r--r--
mod_convert_tsv.txt
472
B
-rw-r--r--
mod_convert_tsv_insecure.txt
596
B
-rw-r--r--
mod_convert_vendor_conf.txt
462
B
-rw-r--r--
mod_convert_vendor_json.txt
475
B
-rw-r--r--
mod_convert_vendor_manifest.tx...
469
B
-rw-r--r--
mod_convert_vendor_yml.txt
460
B
-rw-r--r--
mod_dir.txt
221
B
-rw-r--r--
mod_doc.txt
2.6
KB
-rw-r--r--
mod_domain_root.txt
192
B
-rw-r--r--
mod_dot.txt
1.2
KB
-rw-r--r--
mod_download.txt
5.06
KB
-rw-r--r--
mod_download_hash.txt
877
B
-rw-r--r--
mod_download_json.txt
261
B
-rw-r--r--
mod_download_partial.txt
1.67
KB
-rw-r--r--
mod_download_replace_file.txt
398
B
-rw-r--r--
mod_edit.txt
3.46
KB
-rw-r--r--
mod_edit_go.txt
461
B
-rw-r--r--
mod_empty_err.txt
996
B
-rw-r--r--
mod_enabled.txt
1.71
KB
-rw-r--r--
mod_file_proxy.txt
1.23
KB
-rw-r--r--
mod_find.txt
2.22
KB
-rw-r--r--
mod_fs_patterns.txt
1.68
KB
-rw-r--r--
mod_get_cmd.txt
536
B
-rw-r--r--
mod_get_commit.txt
1.39
KB
-rw-r--r--
mod_get_direct.txt
432
B
-rw-r--r--
mod_get_downgrade.txt
1.51
KB
-rw-r--r--
mod_get_fallback.txt
246
B
-rw-r--r--
mod_get_hash.txt
620
B
-rw-r--r--
mod_get_incompatible.txt
431
B
-rw-r--r--
mod_get_indirect.txt
1.58
KB
-rw-r--r--
mod_get_insecure_redirect.txt
906
B
-rw-r--r--
mod_get_latest_pseudo.txt
276
B
-rw-r--r--
mod_get_local.txt
1.51
KB
-rw-r--r--
mod_get_main.txt
1.15
KB
-rw-r--r--
mod_get_major.txt
626
B
-rw-r--r--
mod_get_moved.txt
1.23
KB
-rw-r--r--
mod_get_newcycle.txt
477
B
-rw-r--r--
mod_get_none.txt
253
B
-rw-r--r--
mod_get_patterns.txt
1.13
KB
-rw-r--r--
mod_get_private_vcs.txt
335
B
-rw-r--r--
mod_get_pseudo.txt
2.22
KB
-rw-r--r--
mod_get_pseudo_other_branch.tx...
1.48
KB
-rw-r--r--
mod_get_pseudo_prefix.txt
1.63
KB
-rw-r--r--
mod_get_svn.txt
1.58
KB
-rw-r--r--
mod_get_tags.txt
791
B
-rw-r--r--
mod_get_test.txt
1.25
KB
-rw-r--r--
mod_get_trailing_slash.txt
967
B
-rw-r--r--
mod_get_upgrade.txt
1.17
KB
-rw-r--r--
mod_get_upgrade_pseudo.txt
2.24
KB
-rw-r--r--
mod_getmode_vendor.txt
1.05
KB
-rw-r--r--
mod_getx.txt
400
B
-rw-r--r--
mod_git_export_subst.txt
549
B
-rw-r--r--
mod_go_version.txt
1010
B
-rw-r--r--
mod_go_version_mixed.txt
646
B
-rw-r--r--
mod_gobuild_import.txt
2.91
KB
-rw-r--r--
mod_gofmt_invalid.txt
207
B
-rw-r--r--
mod_gonoproxy.txt
960
B
-rw-r--r--
mod_gopkg_unstable.txt
425
B
-rw-r--r--
mod_goroot_errors.txt
1.86
KB
-rw-r--r--
mod_graph.txt
207
B
-rw-r--r--
mod_help.txt
132
B
-rw-r--r--
mod_import.txt
375
B
-rw-r--r--
mod_import_mod.txt
143
B
-rw-r--r--
mod_import_v1suffix.txt
187
B
-rw-r--r--
mod_in_testdata_dir.txt
974
B
-rw-r--r--
mod_indirect.txt
1.3
KB
-rw-r--r--
mod_indirect_main.txt
1.38
KB
-rw-r--r--
mod_indirect_tidy.txt
804
B
-rw-r--r--
mod_init_dep.txt
1010
B
-rw-r--r--
mod_init_empty.txt
192
B
-rw-r--r--
mod_init_glide.txt
582
B
-rw-r--r--
mod_init_path.txt
214
B
-rw-r--r--
mod_install_versioned.txt
211
B
-rw-r--r--
mod_internal.txt
2.33
KB
-rw-r--r--
mod_invalid_version.txt
12.99
KB
-rw-r--r--
mod_issue35317.txt
244
B
-rw-r--r--
mod_list.txt
1.97
KB
-rw-r--r--
mod_list_bad_import.txt
2.31
KB
-rw-r--r--
mod_list_compiled_concurrent.t...
1.65
KB
-rw-r--r--
mod_list_dir.txt
1.18
KB
-rw-r--r--
mod_list_direct.txt
520
B
-rw-r--r--
mod_list_e_readonly.txt
449
B
-rw-r--r--
mod_list_pseudo.txt
1.74
KB
-rw-r--r--
mod_list_replace_dir.txt
459
B
-rw-r--r--
mod_list_std.txt
1.87
KB
-rw-r--r--
mod_list_test.txt
278
B
-rw-r--r--
mod_list_upgrade.txt
131
B
-rw-r--r--
mod_list_upgrade_pseudo.txt
785
B
-rw-r--r--
mod_load_badchain.txt
2.88
KB
-rw-r--r--
mod_load_badmod.txt
516
B
-rw-r--r--
mod_load_badzip.txt
506
B
-rw-r--r--
mod_local_replace.txt
329
B
-rw-r--r--
mod_missing_repo.txt
512
B
-rw-r--r--
mod_missingpkg_prerelease.txt
329
B
-rw-r--r--
mod_modinfo.txt
1.79
KB
-rw-r--r--
mod_multirepo.txt
883
B
-rw-r--r--
mod_nomod.txt
644
B
-rw-r--r--
mod_off.txt
1.05
KB
-rw-r--r--
mod_off_init.txt
225
B
-rw-r--r--
mod_outside.txt
9.77
KB
-rw-r--r--
mod_patterns.txt
2.39
KB
-rw-r--r--
mod_patterns_vendor.txt
528
B
-rw-r--r--
mod_permissions.txt
1.24
KB
-rw-r--r--
mod_prefer_compatible.txt
2.48
KB
-rw-r--r--
mod_proxy_errors.txt
697
B
-rw-r--r--
mod_proxy_https.txt
462
B
-rw-r--r--
mod_proxy_list.txt
794
B
-rw-r--r--
mod_pseudo_cache.txt
1.13
KB
-rw-r--r--
mod_query.txt
990
B
-rw-r--r--
mod_query_empty.txt
2.73
KB
-rw-r--r--
mod_query_exclude.txt
489
B
-rw-r--r--
mod_readonly.txt
2.18
KB
-rw-r--r--
mod_replace.txt
3.69
KB
-rw-r--r--
mod_replace_gopkgin.txt
2.3
KB
-rw-r--r--
mod_replace_import.txt
2.66
KB
-rw-r--r--
mod_require_exclude.txt
609
B
-rw-r--r--
mod_retention.txt
2.49
KB
-rw-r--r--
mod_run_path.txt
359
B
-rw-r--r--
mod_std_vendor.txt
1.89
KB
-rw-r--r--
mod_string_alias.txt
146
B
-rw-r--r--
mod_sum_replaced.txt
683
B
-rw-r--r--
mod_sumdb.txt
1.04
KB
-rw-r--r--
mod_sumdb_cache.txt
1.26
KB
-rw-r--r--
mod_sumdb_file_path.txt
2.32
KB
-rw-r--r--
mod_sumdb_golang.txt
1.19
KB
-rw-r--r--
mod_sumdb_proxy.txt
1.4
KB
-rw-r--r--
mod_symlink.txt
1016
B
-rw-r--r--
mod_test.txt
2.17
KB
-rw-r--r--
mod_test_cached.txt
1.49
KB
-rw-r--r--
mod_test_files.txt
1.1
KB
-rw-r--r--
mod_tidy.txt
897
B
-rw-r--r--
mod_tidy_cycle.txt
949
B
-rw-r--r--
mod_tidy_error.txt
1.17
KB
-rw-r--r--
mod_tidy_quote.txt
429
B
-rw-r--r--
mod_tidy_replace.txt
2.89
KB
-rw-r--r--
mod_tidy_sum.txt
748
B
-rw-r--r--
mod_upgrade_patch.txt
2.96
KB
-rw-r--r--
mod_vcs_missing.txt
491
B
-rw-r--r--
mod_vendor.txt
6.23
KB
-rw-r--r--
mod_vendor_auto.txt
9.29
KB
-rw-r--r--
mod_vendor_build.txt
888
B
-rw-r--r--
mod_vendor_nodeps.txt
118
B
-rw-r--r--
mod_vendor_replace.txt
1.79
KB
-rw-r--r--
mod_vendor_trimpath.txt
1.13
KB
-rw-r--r--
mod_vendor_unused.txt
1.43
KB
-rw-r--r--
mod_verify.txt
2.34
KB
-rw-r--r--
mod_versions.txt
377
B
-rw-r--r--
mod_why.txt
2.24
KB
-rw-r--r--
modfile_flag.txt
2.38
KB
-rw-r--r--
noncanonical_import.txt
352
B
-rw-r--r--
pattern_syntax_error.txt
185
B
-rw-r--r--
prevent_sys_unix_import.txt
175
B
-rw-r--r--
run_hello.txt
140
B
-rw-r--r--
run_hello_pkg.txt
168
B
-rw-r--r--
run_internal.txt
1.14
KB
-rw-r--r--
run_set_executable_name.txt
627
B
-rw-r--r--
run_wildcard.txt
223
B
-rw-r--r--
script_wait.txt
485
B
-rw-r--r--
std_vendor.txt
966
B
-rw-r--r--
sum_readonly.txt
469
B
-rw-r--r--
test_bad_example.txt
234
B
-rw-r--r--
test_badtest.txt
805
B
-rw-r--r--
test_benchmark_chatty_fail.txt
739
B
-rw-r--r--
test_benchmark_chatty_success....
629
B
-rw-r--r--
test_benchmark_fatal.txt
310
B
-rw-r--r--
test_benchmark_labels.txt
383
B
-rw-r--r--
test_cache_inputs.txt
4.85
KB
-rw-r--r--
test_chatty_fail.txt
719
B
-rw-r--r--
test_chatty_parallel_fail.txt
2.79
KB
-rw-r--r--
test_chatty_parallel_success.t...
2.62
KB
-rw-r--r--
test_chatty_parallel_success_s...
886
B
-rw-r--r--
test_chatty_success.txt
937
B
-rw-r--r--
test_compile_binary.txt
136
B
-rw-r--r--
test_compile_tempfile.txt
273
B
-rw-r--r--
test_flag.txt
362
B
-rw-r--r--
test_generated_main.txt
941
B
-rw-r--r--
test_go111module_cache.txt
206
B
-rw-r--r--
test_import_error_stack.txt
384
B
-rw-r--r--
test_json_panic_exit.txt
1.2
KB
-rw-r--r--
test_main_archive.txt
436
B
-rw-r--r--
test_main_panic.txt
603
B
-rw-r--r--
test_main_twice.txt
482
B
-rw-r--r--
test_match_no_tests_build_fail...
368
B
-rw-r--r--
test_minus_n.txt
204
B
-rw-r--r--
test_no_tests.txt
195
B
-rw-r--r--
test_race.txt
611
B
-rw-r--r--
test_race_cover_mode_issue2043...
651
B
-rw-r--r--
test_rebuildall.txt
328
B
-rw-r--r--
test_regexps.txt
1.9
KB
-rw-r--r--
test_status.txt
220
B
-rw-r--r--
test_syntax_error_says_fail.tx...
303
B
-rw-r--r--
test_timeout.txt
448
B
-rw-r--r--
vendor_complex.txt
1.21
KB
-rw-r--r--
version.txt
713
B
-rw-r--r--
vet_asm.txt
583
B
-rw-r--r--
vet_deps.txt
354
B
-rw-r--r--
vet_flags.txt
1.41
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : mod_vendor.txt
env GO111MODULE=on # Without vendoring, a build should succeed unless -mod=vendor is set. [!short] go build [!short] ! go build -mod=vendor # Without vendoring, 'go list' should report the replacement directory for # a package in a replaced module. go list -f {{.Dir}} x stdout 'src[\\/]x' # 'go mod vendor' should copy all replaced modules to the vendor directory. go mod vendor -v stderr '^# x v1.0.0 => ./x' stderr '^x' stderr '^# y v1.0.0 => ./y' stderr '^y' stderr '^# z v1.0.0 => ./z' stderr '^z' ! stderr '^w' grep 'a/foo/bar/b\na/foo/bar/c' vendor/modules.txt # must be sorted # An explicit '-mod=mod' should ignore the vendor directory. go list -mod=mod -f {{.Dir}} x stdout 'src[\\/]x' go list -mod=mod -f {{.Dir}} -m x stdout 'src[\\/]x' # An explicit '-mod=vendor' should report package directories within # the vendor directory. go list -mod=vendor -f {{.Dir}} x stdout 'src[\\/]vendor[\\/]x' # 'go list -mod=vendor -m' should successfully list vendored modules, # but should not provide a module directory because no directory contains # the complete module. go list -mod=vendor -f '{{.Version}} {{.Dir}}' -m x stdout '^v1.0.0 $' # -mod=vendor should cause 'go list' flags that look up versions to fail. ! go list -mod=vendor -versions -m x stderr '^go list -m: can''t determine available versions using the vendor directory\n\t\(Use -mod=mod or -mod=readonly to bypass.\)$' ! go list -mod=vendor -u -m x stderr '^go list -m: can''t determine available upgrades using the vendor directory\n\t\(Use -mod=mod or -mod=readonly to bypass.\)$' # 'go list -mod=vendor -m' on a transitive dependency that does not # provide vendored packages should give a helpful error rather than # 'not a known dependency'. ! go list -mod=vendor -f '{{.Version}} {{.Dir}}' -m diamondright stderr 'go list -m: module diamondright: can''t resolve module using the vendor directory\n\t\(Use -mod=mod or -mod=readonly to bypass.\)' # 'go list -mod=mod' should report packages outside the import graph, # but 'go list -mod=vendor' should error out for them. go list -mod=mod -f {{.Dir}} w stdout 'src[\\/]w' ! go list -mod=vendor -f {{.Dir}} w stderr 'src[\\/]vendor[\\/]w' go list -mod=mod -f {{.Dir}} diamondright stdout 'src[\\/]diamondright' # Test dependencies should not be copied. ! exists vendor/x/testdata ! exists vendor/a/foo/bar/b/ignored.go ! exists vendor/a/foo/bar/b/main_test.go # Licenses and other metadata for each module should be copied # if any package within their module is copied. exists vendor/a/foo/AUTHORS.txt exists vendor/a/foo/CONTRIBUTORS exists vendor/a/foo/LICENSE exists vendor/a/foo/PATENTS exists vendor/a/foo/COPYING exists vendor/a/foo/COPYLEFT exists vendor/x/NOTICE! exists vendor/mysite/myname/mypkg/LICENSE.txt ! exists vendor/a/foo/licensed-to-kill ! exists vendor/w ! exists vendor/w/LICENSE ! exists vendor/x/x2 ! exists vendor/x/x2/LICENSE [short] stop # 'go build' and 'go test' using vendored packages should succeed. go build -mod=mod go build -mod=vendor go test -mod=vendor . ./subdir go test -mod=vendor ./... go fmt -mod=vendor ./... -- go.mod -- module m go 1.13 require ( a v1.0.0 diamondroot v0.0.0 mysite/myname/mypkg v1.0.0 w v1.0.0 // indirect x v1.0.0 y v1.0.0 z v1.0.0 ) replace ( a v1.0.0 => ./a diamondleft => ./diamondleft diamondpoint => ./diamondpoint diamondright => ./diamondright diamondroot => ./diamondroot mysite/myname/mypkg v1.0.0 => ./mypkg w v1.0.0 => ./w x v1.0.0 => ./x y v1.0.0 => ./y z v1.0.0 => ./z ) -- a/foo/AUTHORS.txt -- -- a/foo/CONTRIBUTORS -- -- a/foo/LICENSE -- -- a/foo/PATENTS -- -- a/foo/COPYING -- -- a/foo/COPYLEFT -- -- a/foo/licensed-to-kill -- -- w/LICENSE -- -- x/NOTICE! -- -- x/x2/LICENSE -- -- mypkg/LICENSE.txt -- -- a/foo/bar/b/main.go -- package b -- a/foo/bar/b/ignored.go -- // This file is intended for use with "go run"; it isn't really part of the package. // +build ignore package main func main() {} -- a/foo/bar/b/main_test.go -- package b import ( "os" "testing" ) func TestDir(t *testing.T) { if _, err := os.Stat("../testdata/1"); err != nil { t.Fatalf("testdata: %v", err) } } -- a/foo/bar/c/main.go -- package c import _ "a/foo/bar/b" -- a/foo/bar/c/main_test.go -- package c import ( "os" "testing" ) func TestDir(t *testing.T) { if _, err := os.Stat("../../../testdata/1"); err != nil { t.Fatalf("testdata: %v", err) } if _, err := os.Stat("./testdata/1"); err != nil { t.Fatalf("testdata: %v", err) } } -- a/foo/bar/c/testdata/1 -- -- a/foo/bar/testdata/1 -- -- a/go.mod -- module a -- a/main.go -- package a -- a/main_test.go -- package a import ( "os" "testing" ) func TestDir(t *testing.T) { if _, err := os.Stat("./testdata/1"); err != nil { t.Fatalf("testdata: %v", err) } } -- a/testdata/1 -- -- appengine.go -- // +build appengine package m import _ "appengine" import _ "appengine/datastore" -- mypkg/go.mod -- module me -- mypkg/mydir/d.go -- package mydir -- subdir/v1_test.go -- package m import _ "mysite/myname/mypkg/mydir" -- testdata1.go -- package m import _ "a" -- testdata2.go -- package m import _ "a/foo/bar/c" -- v1.go -- package m import _ "x" -- v2.go -- // +build abc package mMmMmMm import _ "y" -- v3.go -- // +build !abc package m import _ "z" -- v4.go -- // +build notmytag package m import _ "x/x1" -- importdiamond.go -- package m import _ "diamondroot" -- w/go.mod -- module w -- w/w.go -- package w -- x/go.mod -- module x -- x/testdata/x.txt -- placeholder - want directory with no go files -- x/x.go -- package x -- x/x1/x1.go -- // +build notmytag package x1 -- x/x2/dummy.txt -- dummy -- x/x_test.go -- package x import _ "w" -- y/go.mod -- module y -- y/y.go -- package y -- z/go.mod -- module z -- z/z.go -- package z -- diamondroot/go.mod -- module diamondroot require ( diamondleft v0.0.0 diamondright v0.0.0 ) -- diamondroot/x.go -- package diamondroot import _ "diamondleft" -- diamondroot/unused/unused.go -- package unused import _ "diamondright" -- diamondleft/go.mod -- module diamondleft require ( diamondpoint v0.0.0 ) -- diamondleft/x.go -- package diamondleft import _ "diamondpoint" -- diamondright/go.mod -- module diamondright require ( diamondpoint v0.0.0 ) -- diamondright/x.go -- package diamondright import _ "diamondpoint" -- diamondpoint/go.mod -- module diamondpoint -- diamondpoint/x.go -- package diamondpoint
Close