├── src ├── go │ ├── build │ │ └── testdata │ │ │ ├── empty │ │ │ └── dummy │ │ │ ├── doc │ │ │ ├── e.go │ │ │ ├── c_test.go │ │ │ ├── b_test.go │ │ │ ├── f.go │ │ │ ├── a_test.go │ │ │ └── d_test.go │ │ │ ├── cgo_disabled │ │ │ ├── empty.go │ │ │ └── cgo_disabled.go │ │ │ ├── withvendor │ │ │ └── src │ │ │ │ └── a │ │ │ │ ├── vendor │ │ │ │ └── c │ │ │ │ │ └── d │ │ │ │ │ └── d.go │ │ │ │ └── b │ │ │ │ └── b.go │ │ │ ├── multi │ │ │ ├── file.go │ │ │ └── file_appengine.go │ │ │ └── other │ │ │ ├── file │ │ │ └── file.go │ │ │ └── main.go │ ├── internal │ │ ├── gccgoimporter │ │ │ └── testdata │ │ │ │ ├── pointer.go │ │ │ │ ├── conversions.go │ │ │ │ ├── imports.go │ │ │ │ ├── time.gox │ │ │ │ ├── pointer.gox │ │ │ │ ├── unicode.gox │ │ │ │ ├── escapeinfo.gox │ │ │ │ ├── libimportsar.a │ │ │ │ ├── v1reflect.gox │ │ │ │ ├── complexnums.go │ │ │ │ ├── issue27856.go │ │ │ │ ├── conversions.gox │ │ │ │ └── complexnums.gox │ │ ├── gcimporter │ │ │ └── testdata │ │ │ │ └── versions │ │ │ │ ├── test_go1.11_0i.a │ │ │ │ ├── test_go1.11_6b.a │ │ │ │ ├── test_go1.7_0.a │ │ │ │ ├── test_go1.7_1.a │ │ │ │ ├── test_go1.8_4.a │ │ │ │ ├── test_go1.8_5.a │ │ │ │ └── test_go1.11_999i.a │ │ └── srcimporter │ │ │ └── testdata │ │ │ ├── issue23092 │ │ │ └── issue23092.go │ │ │ └── issue24392 │ │ │ └── issue24392.go │ ├── printer │ │ └── testdata │ │ │ ├── empty.golden │ │ │ └── empty.input │ ├── doc │ │ └── testdata │ │ │ ├── issue17788.0.golden │ │ │ ├── issue17788.1.golden │ │ │ ├── issue17788.2.golden │ │ │ ├── predeclared.0.golden │ │ │ └── predeclared.2.golden │ └── types │ │ └── testdata │ │ └── blank.src ├── os │ └── testdata │ │ └── issue37161 │ │ ├── a │ │ ├── b │ │ └── c ├── archive │ ├── tar │ │ └── testdata │ │ │ ├── small.txt │ │ │ ├── small2.txt │ │ │ ├── v7.tar │ │ │ ├── gnu-utf8.tar │ │ │ ├── neg-size.tar │ │ │ ├── gnu-not-utf8.tar │ │ │ ├── invalid-go17.tar │ │ │ ├── issue10968.tar │ │ │ ├── issue12435.tar │ │ │ ├── writer-big.tar │ │ │ └── gnu-sparse-big.tar │ └── zip │ │ └── testdata │ │ ├── dd.zip │ │ ├── test.zip │ │ ├── unix.zip │ │ ├── readme.zip │ │ ├── symlink.zip │ │ ├── time-go.zip │ │ ├── winxp.zip │ │ ├── zip64-2.zip │ │ ├── zip64.zip │ │ ├── readme.notzip │ │ ├── time-7zip.zip │ │ ├── time-osx.zip │ │ ├── time-win7.zip │ │ ├── utf8-7zip.zip │ │ ├── utf8-osx.zip │ │ ├── time-22738.zip │ │ ├── time-infozip.zip │ │ ├── time-winrar.zip │ │ ├── time-winzip.zip │ │ ├── utf8-infozip.zip │ │ ├── utf8-winrar.zip │ │ ├── utf8-winzip.zip │ │ ├── gophercolor16x16.png │ │ ├── crc32-not-streamed.zip │ │ ├── test-trailing-junk.zip │ │ └── go-with-datadesc-sig.zip ├── net │ ├── http │ │ └── testdata │ │ │ ├── file │ │ │ ├── style.css │ │ │ └── index.html │ └── testdata │ │ ├── singleline-hosts │ │ ├── openbsd-tcp-resolv.conf │ │ ├── empty-resolv.conf │ │ ├── freebsd-usevc-resolv.conf │ │ ├── large-ndots-resolv.conf │ │ ├── linux-use-vc-resolv.conf │ │ ├── invalid-ndots-resolv.conf │ │ ├── negative-ndots-resolv.conf │ │ ├── single-request-resolv.conf │ │ ├── single-request-reopen-resolv.conf │ │ ├── case-hosts │ │ ├── domain-resolv.conf │ │ ├── search-resolv.conf │ │ ├── openbsd-resolv.conf │ │ └── resolv.conf ├── cmd │ ├── internal │ │ ├── test2json │ │ │ └── testdata │ │ │ │ ├── empty.json │ │ │ │ ├── empty.test │ │ │ │ └── benchfail.test │ │ └── archive │ │ │ └── testdata │ │ │ └── mycgo │ │ │ └── go.go │ ├── go │ │ ├── internal │ │ │ └── imports │ │ │ │ └── testdata │ │ │ │ ├── star │ │ │ │ ├── tags.txt │ │ │ │ ├── x.go │ │ │ │ ├── want.txt │ │ │ │ ├── x_darwin.go │ │ │ │ ├── x_windows.go │ │ │ │ └── x1.go │ │ │ │ ├── android │ │ │ │ ├── tags.txt │ │ │ │ ├── want.txt │ │ │ │ ├── c_linux.go │ │ │ │ ├── a_android.go │ │ │ │ ├── d_linux_arm64.go │ │ │ │ ├── b_android_arm64.go │ │ │ │ ├── e.go │ │ │ │ ├── f.go │ │ │ │ └── g.go │ │ │ │ └── illumos │ │ │ │ ├── tags.txt │ │ │ │ ├── want.txt │ │ │ │ ├── a_illumos.go │ │ │ │ ├── c_solaris.go │ │ │ │ ├── b_illumos_amd64.go │ │ │ │ ├── d_solaris_amd64.go │ │ │ │ ├── e.go │ │ │ │ ├── f.go │ │ │ │ └── g.go │ │ └── testdata │ │ │ ├── failssh │ │ │ └── ssh │ │ │ ├── modlegacy │ │ │ └── src │ │ │ │ ├── new │ │ │ │ ├── p2 │ │ │ │ │ └── p2.go │ │ │ │ ├── go.mod │ │ │ │ ├── sub │ │ │ │ │ ├── inner │ │ │ │ │ │ ├── x │ │ │ │ │ │ │ └── x.go │ │ │ │ │ │ └── go.mod │ │ │ │ │ ├── x │ │ │ │ │ │ └── v1 │ │ │ │ │ │ │ └── y │ │ │ │ │ │ │ └── y.go │ │ │ │ │ └── go.mod │ │ │ │ └── new.go │ │ │ │ └── old │ │ │ │ ├── p2 │ │ │ │ └── p2.go │ │ │ │ └── p1 │ │ │ │ └── p1.go │ │ │ ├── script │ │ │ ├── get_custom_domain_wildcard.txt │ │ │ ├── get_test_only.txt │ │ │ ├── get_race.txt │ │ │ ├── issue36000.txt │ │ │ ├── mod_case_cgo.txt │ │ │ ├── mod_help.txt │ │ │ ├── get_internal_wildcard.txt │ │ │ ├── vendor_import_missing.txt │ │ │ ├── install_relative_gobin_fail.txt │ │ │ ├── mod_list_upgrade.txt │ │ │ ├── mod_vendor_nodeps.txt │ │ │ ├── build_unsupported_goos.txt │ │ │ ├── mod_import_mod.txt │ │ │ ├── test_compile_binary.txt │ │ │ ├── build_tags_no_comma.txt │ │ │ ├── get_insecure_custom_domain.txt │ │ │ ├── run_hello.txt │ │ │ ├── cgo_depends_on_syscall.txt │ │ │ ├── get_dash_t.txt │ │ │ ├── get_with_git_trace.txt │ │ │ ├── get_dot_slash_download.txt │ │ │ ├── prevent_sys_unix_import.txt │ │ │ ├── gccgo_mangle.txt │ │ │ ├── install_cgo_excluded.txt │ │ │ ├── vendor_import_wrong.txt │ │ │ ├── cover_mod_empty.txt │ │ │ └── mod_string_alias.txt │ │ │ └── mod │ │ │ ├── example.com_retract_rationale_v1.0.0-block.txt │ │ │ ├── example.com_retract_rationale_v1.0.0-order.txt │ │ │ ├── example.com_retract_rationale_v1.0.1-order.txt │ │ │ ├── example.com_retract_rationale_v1.0.0-blockwithcomment.txt │ │ │ ├── example.com_badchain_c_v1.0.0.txt │ │ │ ├── example.com_badchain_c_v1.1.0.txt │ │ │ ├── example.com_join_v1.0.0.txt │ │ │ ├── example.com_noroot_v1.0.0.txt │ │ │ ├── example.com_noroot_v1.0.1.txt │ │ │ ├── example.com_retract_rationale_v1.0.0-empty.txt │ │ │ ├── example.com_retract_rationale_v1.0.0-long.txt │ │ │ ├── example.com_retract_v1.0.0-bad.txt │ │ │ ├── example.com_newcycle_b_v1.0.0.txt │ │ │ ├── example.com_retract_v1.0.0-good.txt │ │ │ ├── example.com_retract_rationale_v1.0.0-multiline1.txt │ │ │ ├── example.com_retract_rationale_v1.0.0-multiline2.txt │ │ │ ├── example.com_retract_v1.0.0-unused.txt │ │ │ ├── example.com_v1.0.0.txt │ │ │ ├── rsc.io_testonly_v1.0.0.txt │ │ │ ├── example.com_retract_rationale_v1.0.0-unprintable.txt │ │ │ ├── rsc.io_badmod_v1.0.0.txt │ │ │ ├── example.com_retract_missingmod_v1.9.0.txt │ │ │ ├── example.com_downgrade_v2.0.0.txt │ │ │ ├── example.com_missingpkg_v1.0.1-beta.txt │ │ │ ├── rsc.io_breaker_v1.0.0.txt │ │ │ ├── example.com_join_v1.1.0.txt │ │ │ └── gopkg.in_dummy.v2-unstable_v2.0.0.txt │ ├── compile │ │ └── internal │ │ │ ├── test │ │ │ ├── test.go │ │ │ └── README │ │ │ └── ssa │ │ │ └── testdata │ │ │ ├── infloop.gdb-opt.nexts │ │ │ ├── i22600.dlv-dbg-race.nexts │ │ │ └── i22600.gdb-dbg-race.nexts │ ├── doc │ │ └── testdata │ │ │ ├── nested │ │ │ ├── empty │ │ │ │ └── empty.go │ │ │ ├── nested │ │ │ │ └── real.go │ │ │ └── ignore.go │ │ │ └── merge │ │ │ ├── aa.go │ │ │ └── bb.go │ ├── vet │ │ └── testdata │ │ │ └── testingpkg │ │ │ ├── tests.go │ │ │ └── tests_test.go │ ├── api │ │ └── testdata │ │ │ └── src │ │ │ ├── issue21181 │ │ │ ├── dep │ │ │ │ ├── p_amd64.go │ │ │ │ └── p.go │ │ │ ├── indirect │ │ │ │ └── p.go │ │ │ └── p │ │ │ │ ├── p_amd64.go │ │ │ │ ├── p.go │ │ │ │ └── p_generic.go │ │ │ ├── issue29837 │ │ │ └── p │ │ │ │ └── README │ │ │ └── pkg │ │ │ ├── p3 │ │ │ ├── p3.go │ │ │ └── golden.txt │ │ │ └── p2 │ │ │ ├── p2.go │ │ │ └── golden.txt │ ├── vendor │ │ ├── golang.org │ │ │ └── x │ │ │ │ ├── sys │ │ │ │ ├── unix │ │ │ │ │ └── .gitignore │ │ │ │ ├── AUTHORS │ │ │ │ └── CONTRIBUTORS │ │ │ │ ├── xerrors │ │ │ │ ├── codereview.cfg │ │ │ │ ├── go.mod │ │ │ │ └── README │ │ │ │ ├── arch │ │ │ │ ├── arm │ │ │ │ │ └── armasm │ │ │ │ │ │ └── Makefile │ │ │ │ ├── x86 │ │ │ │ │ └── x86asm │ │ │ │ │ │ └── Makefile │ │ │ │ ├── AUTHORS │ │ │ │ └── CONTRIBUTORS │ │ │ │ ├── crypto │ │ │ │ ├── AUTHORS │ │ │ │ └── CONTRIBUTORS │ │ │ │ └── tools │ │ │ │ ├── AUTHORS │ │ │ │ ├── CONTRIBUTORS │ │ │ │ └── go │ │ │ │ └── analysis │ │ │ │ └── unitchecker │ │ │ │ └── unitchecker112.go │ │ └── github.com │ │ │ └── ianlancetaylor │ │ │ └── demangle │ │ │ ├── README.md │ │ │ └── .gitignore │ ├── gofmt │ │ └── testdata │ │ │ ├── stdin1.golden │ │ │ ├── stdin1.input │ │ │ ├── stdin4.golden │ │ │ ├── stdin4.input │ │ │ ├── stdin5.input │ │ │ ├── stdin5.golden │ │ │ ├── stdin3.input │ │ │ ├── comments.golden │ │ │ ├── comments.input │ │ │ ├── stdin3.golden │ │ │ ├── stdin2.golden │ │ │ ├── stdin2.input │ │ │ ├── emptydecl.golden │ │ │ └── emptydecl.input │ ├── README.vendor │ ├── link │ │ ├── testdata │ │ │ ├── testBuildFortvOS │ │ │ │ ├── main.m │ │ │ │ └── lib.go │ │ │ └── testPErsrc │ │ │ │ └── rsrc.syso │ │ └── internal │ │ │ └── ld │ │ │ └── testdata │ │ │ ├── issue10978 │ │ │ └── main.s │ │ │ └── issue25459 │ │ │ └── main │ │ │ └── main.go │ └── cover │ │ └── testdata │ │ ├── html │ │ └── html_test.go │ │ └── profile.cov ├── crypto │ ├── tls │ │ └── testdata │ │ │ ├── Client-TLSv10-Ed25519 │ │ │ └── Client-TLSv11-Ed25519 │ ├── ecdsa │ │ └── testdata │ │ │ └── SigVer.rsp.bz2 │ ├── ed25519 │ │ └── testdata │ │ │ └── sign.input.gz │ └── rsa │ │ └── testdata │ │ └── pss-vect.txt.bz2 ├── io │ └── ioutil │ │ └── testdata │ │ └── hello ├── compress │ ├── flate │ │ └── testdata │ │ │ ├── huffman-zero.wb.expect │ │ │ ├── huffman-zero.wb.expect-noinput │ │ │ ├── huffman-pi.golden │ │ │ ├── huffman-rand-1k.in │ │ │ ├── huffman-pi.wb.expect │ │ │ ├── huffman-rand-max.in │ │ │ ├── huffman-text.golden │ │ │ ├── huffman-zero.golden │ │ │ ├── huffman-null-max.golden │ │ │ ├── huffman-pi.dyn.expect │ │ │ ├── huffman-rand-1k.golden │ │ │ ├── huffman-rand-limit.in │ │ │ ├── huffman-rand-max.golden │ │ │ ├── huffman-shifts.golden │ │ │ ├── huffman-text.dyn.expect │ │ │ ├── huffman-text.wb.expect │ │ │ ├── huffman-zero.dyn.expect │ │ │ ├── huffman-rand-1k.wb.expect │ │ │ ├── huffman-rand-limit.golden │ │ │ ├── huffman-shifts.dyn.expect │ │ │ ├── huffman-shifts.wb.expect │ │ │ ├── huffman-text-shift.golden │ │ │ ├── huffman-null-max.dyn.expect │ │ │ ├── huffman-null-max.wb.expect │ │ │ ├── huffman-pi.wb.expect-noinput │ │ │ ├── huffman-rand-1k.dyn.expect │ │ │ ├── huffman-rand-limit.wb.expect │ │ │ ├── huffman-text-shift.wb.expect │ │ │ ├── huffman-pi.dyn.expect-noinput │ │ │ ├── huffman-rand-limit.dyn.expect │ │ │ ├── huffman-text-shift.dyn.expect │ │ │ ├── huffman-text.wb.expect-noinput │ │ │ ├── huffman-rand-1k.wb.expect-noinput │ │ │ ├── huffman-shifts.dyn.expect-noinput │ │ │ ├── huffman-shifts.wb.expect-noinput │ │ │ ├── huffman-text.dyn.expect-noinput │ │ │ ├── huffman-zero.dyn.expect-noinput │ │ │ ├── null-long-match.wb.expect-noinput │ │ │ ├── huffman-null-max.dyn.expect-noinput │ │ │ ├── huffman-null-max.wb.expect-noinput │ │ │ ├── huffman-rand-1k.dyn.expect-noinput │ │ │ ├── null-long-match.dyn.expect-noinput │ │ │ ├── huffman-rand-limit.dyn.expect-noinput │ │ │ ├── huffman-rand-limit.wb.expect-noinput │ │ │ ├── huffman-text-shift.dyn.expect-noinput │ │ │ └── huffman-text-shift.wb.expect-noinput │ └── bzip2 │ │ └── testdata │ │ ├── e.txt.bz2 │ │ ├── random.data.bz2 │ │ ├── fail-issue5747.bz2 │ │ ├── pass-random1.bin │ │ ├── pass-random1.bz2 │ │ ├── pass-random2.bin │ │ ├── pass-random2.bz2 │ │ ├── pass-sawtooth.bz2 │ │ └── Isaac.Newton-Opticks.txt.bz2 ├── syscall │ ├── zsysnum_windows_386.go │ ├── zsysnum_windows_amd64.go │ ├── syscall_windows_386.go │ ├── syscall_windows_amd64.go │ ├── zerrors_windows_386.go │ ├── zerrors_windows_amd64.go │ └── export_test.go ├── html │ └── template │ │ └── testdata │ │ ├── file1.tmpl │ │ ├── tmpl1.tmpl │ │ ├── tmpl2.tmpl │ │ └── file2.tmpl ├── text │ └── template │ │ └── testdata │ │ ├── file1.tmpl │ │ ├── tmpl1.tmpl │ │ ├── tmpl2.tmpl │ │ └── file2.tmpl ├── debug │ ├── dwarf │ │ ├── testdata │ │ │ ├── line2.c │ │ │ ├── split.c │ │ │ ├── cycle.elf │ │ │ ├── ranges.elf │ │ │ ├── split.elf │ │ │ ├── typedef.elf │ │ │ ├── line-gcc.elf │ │ │ ├── typedef.elf4 │ │ │ ├── typedef.macho │ │ │ ├── line-clang.elf │ │ │ ├── line-gcc-win.bin │ │ │ ├── cppunsuptypes.elf │ │ │ ├── line1.c │ │ │ ├── line1.h │ │ │ └── cycle.c │ │ └── export_test.go │ ├── gosym │ │ └── testdata │ │ │ ├── pcln115.gz │ │ │ ├── pclinetest.h │ │ │ └── main.go │ ├── elf │ │ └── testdata │ │ │ ├── compressed-32.obj │ │ │ ├── compressed-64.obj │ │ │ ├── gcc-386-freebsd-exec │ │ │ ├── gcc-amd64-linux-exec │ │ │ ├── hello-world-core.gz │ │ │ ├── hello.c │ │ │ ├── zdebug-test-gcc484-x86-64.obj │ │ │ ├── go-relocation-test-clang-arm.obj │ │ │ ├── go-relocation-test-clang-x86.obj │ │ │ ├── go-relocation-test-gcc441-x86.obj │ │ │ ├── go-relocation-test-gcc492-arm.obj │ │ │ ├── go-relocation-test-gcc5-ppc.obj │ │ │ ├── go-relocation-test-gcc531-s390x.obj │ │ │ ├── go-relocation-test-gcc540-mips.obj │ │ │ ├── gcc-amd64-openbsd-debug-with-rela.obj │ │ │ ├── go-relocation-test-gcc424-x86-64.obj │ │ │ ├── go-relocation-test-gcc441-x86-64.obj │ │ │ ├── go-relocation-test-gcc482-aarch64.obj │ │ │ ├── go-relocation-test-gcc482-ppc64le.obj │ │ │ ├── go-relocation-test-gcc492-mips64.obj │ │ │ ├── go-relocation-test-gcc492-mipsle.obj │ │ │ ├── go-relocation-test-gcc493-mips64le.obj │ │ │ ├── go-relocation-test-gcc620-sparc64.obj │ │ │ └── go-relocation-test-gcc720-riscv64.obj │ ├── pe │ │ └── testdata │ │ │ ├── gcc-386-mingw-exec │ │ │ ├── gcc-386-mingw-obj │ │ │ ├── gcc-amd64-mingw-obj │ │ │ ├── gcc-amd64-mingw-exec │ │ │ ├── hello.c │ │ │ ├── vmlinuz-4.15.0-47-generic │ │ │ └── gcc-386-mingw-no-symbols-exec │ ├── plan9obj │ │ └── testdata │ │ │ ├── 386-plan9-exec │ │ │ ├── amd64-plan9-exec │ │ │ └── hello.c │ └── macho │ │ └── testdata │ │ └── hello.c ├── image │ ├── testdata │ │ ├── video-001.gif │ │ ├── video-001.jpeg │ │ ├── video-001.png │ │ ├── triangle-001.gif │ │ ├── video-001.rgb.png │ │ ├── video-001.5bpp.gif │ │ ├── video-001.cmyk.jpeg │ │ ├── video-001.cmyk.png │ │ ├── video-001.rgb.jpeg │ │ ├── video-005.gray.gif │ │ ├── video-005.gray.jpeg │ │ ├── video-005.gray.png │ │ ├── video-001.221212.jpeg │ │ ├── video-001.221212.png │ │ ├── video-001.q50.410.jpeg │ │ ├── video-001.q50.411.jpeg │ │ ├── video-001.q50.420.jpeg │ │ ├── video-001.q50.422.jpeg │ │ ├── video-001.q50.440.jpeg │ │ ├── video-001.q50.444.jpeg │ │ ├── video-001.interlaced.gif │ │ ├── video-005.gray.q50.jpeg │ │ ├── video-001.progressive.jpeg │ │ ├── video-005.gray.q50.2x2.jpeg │ │ ├── video-001.q50.410.progressive.jpeg │ │ ├── video-001.q50.411.progressive.jpeg │ │ ├── video-001.q50.420.progressive.jpeg │ │ ├── video-001.q50.422.progressive.jpeg │ │ ├── video-001.q50.440.progressive.jpeg │ │ ├── video-001.q50.444.progressive.jpeg │ │ ├── video-001.progressive.truncated.jpeg │ │ ├── video-001.progressive.truncated.png │ │ ├── video-005.gray.q50.progressive.jpeg │ │ ├── video-001.separate.dc.progression.jpeg │ │ ├── video-005.gray.q50.2x2.progressive.jpeg │ │ └── video-001.separate.dc.progression.progressive.jpeg │ └── png │ │ └── testdata │ │ ├── benchGray.png │ │ ├── benchRGB.png │ │ ├── benchPaletted.png │ │ ├── gray-gradient.png │ │ ├── invalid-crc32.png │ │ ├── invalid-noend.png │ │ ├── invalid-trunc.png │ │ ├── invalid-zlib.png │ │ ├── invalid-palette.png │ │ ├── benchNRGBA-gradient.png │ │ ├── benchNRGBA-opaque.png │ │ ├── benchRGB-interlace.png │ │ ├── pngsuite │ │ ├── basn0g01.png │ │ ├── basn0g02.png │ │ ├── basn0g04.png │ │ ├── basn0g08.png │ │ ├── basn0g16.png │ │ ├── basn2c08.png │ │ ├── basn2c16.png │ │ ├── basn3p01.png │ │ ├── basn3p02.png │ │ ├── basn3p04.png │ │ ├── basn3p08.png │ │ ├── basn4a08.png │ │ ├── basn4a16.png │ │ ├── basn6a08.png │ │ ├── basn6a16.png │ │ ├── ftbbn0g01.png │ │ ├── ftbbn0g02.png │ │ ├── ftbbn0g04.png │ │ ├── ftbbn2c16.png │ │ ├── ftbbn3p08.png │ │ ├── ftbgn2c16.png │ │ ├── ftbgn3p08.png │ │ ├── ftbrn2c08.png │ │ ├── ftbwn0g16.png │ │ ├── ftbwn3p08.png │ │ ├── ftbyn3p08.png │ │ ├── ftp0n0g08.png │ │ ├── ftp0n2c08.png │ │ ├── ftp0n3p08.png │ │ ├── ftp1n3p08.png │ │ ├── basn0g01-30.png │ │ ├── basn0g02-29.png │ │ ├── basn0g04-31.png │ │ ├── basn3p04-31i.png │ │ └── basn3p08-trns.png │ │ └── gray-gradient.interlaced.png ├── runtime │ ├── pprof │ │ └── testdata │ │ │ ├── test32 │ │ │ ├── test64 │ │ │ ├── test32be │ │ │ └── test64be │ ├── race │ │ ├── race_linux_amd64.syso │ │ ├── race_linux_arm64.syso │ │ ├── race_darwin_amd64.syso │ │ ├── race_freebsd_amd64.syso │ │ ├── race_linux_ppc64le.syso │ │ ├── race_netbsd_amd64.syso │ │ └── race_windows_amd64.syso │ ├── testdata │ │ └── testwinlibsignal │ │ │ └── dummy.go │ ├── zcallback_windows.go │ ├── Makefile │ ├── preempt_wasm.s │ ├── os_linux_riscv64.go │ └── export_aix_test.go ├── internal │ ├── xcoff │ │ └── testdata │ │ │ ├── printbye.c │ │ │ ├── printhello.c │ │ │ ├── bigar-ppc64 │ │ │ ├── hello.c │ │ │ ├── gcc-ppc32-aix-dwarf2-exec │ │ │ ├── gcc-ppc64-aix-dwarf2-exec │ │ │ └── bigar-empty │ ├── trace │ │ └── testdata │ │ │ ├── http_1_5_good │ │ │ ├── http_1_7_good │ │ │ ├── http_1_9_good │ │ │ ├── http_1_10_good │ │ │ ├── http_1_11_good │ │ │ ├── stress_1_5_good │ │ │ ├── stress_1_7_good │ │ │ ├── stress_1_9_good │ │ │ ├── stress_1_10_good │ │ │ ├── stress_1_11_good │ │ │ ├── stress_1_5_unordered │ │ │ ├── user_task_span_1_11_good │ │ │ ├── stress_start_stop_1_10_good │ │ │ ├── stress_start_stop_1_11_good │ │ │ ├── stress_start_stop_1_5_good │ │ │ ├── stress_start_stop_1_7_good │ │ │ └── stress_start_stop_1_9_good │ ├── reflectlite │ │ └── asm.s │ └── cpu │ │ ├── cpu_386.go │ │ ├── cpu_amd64.go │ │ ├── cpu_mips.go │ │ ├── cpu_wasm.go │ │ ├── cpu_mipsle.go │ │ └── cpu_riscv64.go ├── encoding │ └── json │ │ └── testdata │ │ └── code.json.gz ├── regexp │ └── testdata │ │ └── re2-exhaustive.txt.bz2 ├── path │ └── filepath │ │ ├── symlink_unix.go │ │ └── export_test.go ├── vendor │ └── golang.org │ │ └── x │ │ ├── net │ │ ├── AUTHORS │ │ └── CONTRIBUTORS │ │ ├── sys │ │ ├── AUTHORS │ │ └── CONTRIBUTORS │ │ ├── text │ │ ├── AUTHORS │ │ └── CONTRIBUTORS │ │ └── crypto │ │ ├── AUTHORS │ │ └── CONTRIBUTORS ├── math │ └── bits │ │ └── export_test.go └── testing │ └── export_test.go ├── test ├── fixedbugs │ ├── bug328.out │ ├── bug206.out │ ├── issue22683.out │ ├── issue30956.out │ ├── issue31782.out │ ├── issue32175.out │ ├── issue22326.out │ ├── issue24693.out │ ├── issue25322.out │ ├── issue31959.out │ ├── issue21808.out │ ├── issue31636.out │ ├── issue32680.out │ ├── issue6899.out │ ├── issue21879.out │ ├── issue28390.out │ ├── issue5957.dir │ │ ├── b.go │ │ └── a.go │ ├── issue30709.out │ ├── issue21887.out │ ├── issue35576.out │ ├── issue15992.out │ ├── issue36085.dir │ │ ├── a.go │ │ └── b.go │ ├── bug409.out │ ├── issue11053.out │ ├── issue15470.dir │ │ └── b.go │ ├── issue5614.dir │ │ ├── y.go │ │ └── x.go │ ├── issue8280.dir │ │ ├── a.go │ │ └── b.go │ ├── issue10066.dir │ │ ├── b.go │ │ └── a.go │ ├── issue15609.dir │ │ ├── call_decl.go │ │ ├── call.go │ │ ├── call_386.s │ │ ├── call_amd64.s │ │ └── main.go │ ├── issue16133.dir │ │ ├── b.go │ │ ├── a1.go │ │ ├── a2.go │ │ └── c.go │ ├── issue4326.dir │ │ ├── p2.go │ │ ├── z.go │ │ ├── q1.go │ │ └── q2.go │ ├── bug467.dir │ │ ├── p3.go │ │ ├── p2.go │ │ └── p1.go │ ├── issue13777.dir │ │ └── main.go │ ├── issue7995b.dir │ │ ├── x2.go │ │ └── x1.go │ ├── issue4879.dir │ │ └── b.go │ ├── issue24801.go │ ├── bug088.go │ ├── bug106.go │ ├── bug222.go │ ├── bug282.go │ ├── bug306.go │ ├── bug160.go │ ├── bug392.go │ ├── bug396.go │ ├── bug404.go │ ├── bug407.go │ ├── bug448.go │ ├── issue13777.go │ ├── issue14164.go │ ├── issue15071.go │ ├── issue18911.go │ ├── issue22941.go │ ├── issue24693.go │ ├── issue31636.go │ ├── issue31959.go │ ├── issue32595.go │ ├── bug083.go │ ├── bug106.dir │ │ ├── bug0.go │ │ └── bug1.go │ ├── bug133.go │ ├── bug504.dir │ │ └── a.go │ ├── issue15548.go │ ├── issue15920.dir │ │ └── b.go │ ├── issue15920.go │ ├── issue19467.go │ ├── issue19699.go │ ├── issue20682.go │ ├── issue22877.go │ ├── issue22941.dir │ │ └── a.go │ ├── issue22962.go │ ├── issue23179.go │ ├── issue23311.go │ ├── issue25984.go │ ├── issue26341.go │ ├── issue27836.go │ ├── issue29612.go │ ├── issue30659.go │ ├── issue30907.go │ ├── issue31252.go │ ├── issue4510.dir │ │ └── f2.go │ ├── bug222.dir │ │ └── chanbug2.go │ ├── bug282.dir │ │ └── p2.go │ ├── bug306.dir │ │ └── p2.go │ ├── issue10700.go │ ├── issue15514.go │ ├── issue18419.go │ ├── issue24761.go │ ├── issue25055.go │ ├── issue31053.go │ ├── issue4510.go │ ├── issue4932.dir │ │ └── foo.go │ ├── issue5260.dir │ │ └── a.go │ ├── issue5957.go │ ├── issue6513.dir │ │ └── a.go │ ├── bug377.dir │ │ └── two.go │ ├── bug382.dir │ │ └── pkg.go │ ├── bug468.dir │ │ └── p1.go │ ├── issue15514.dir │ │ └── a.go │ ├── issue16616.dir │ │ └── a.go │ ├── issue18895.go │ ├── issue19261.go │ ├── issue25055.dir │ │ └── a.go │ ├── bug063.go │ ├── bug133.dir │ │ └── bug0.go │ ├── issue19507.go │ ├── issue8060.dir │ │ └── a.go │ ├── bug050.go │ ├── bug160.dir │ │ └── x.go │ └── bug488.dir │ │ └── a.go ├── helloworld.out ├── sigchld.out ├── bench │ └── go1 │ │ └── go.mod ├── printbig.out ├── ken │ ├── string.out │ └── cplx0.out ├── dwarf │ └── dwarf.dir │ │ ├── z11.go │ │ ├── z12.go │ │ ├── z13.go │ │ ├── z14.go │ │ ├── z15.go │ │ ├── z16.go │ │ ├── z17.go │ │ ├── z19.go │ │ ├── z2.go │ │ ├── z20.go │ │ ├── z3.go │ │ ├── z4.go │ │ ├── z5.go │ │ ├── z6.go │ │ ├── z7.go │ │ ├── z8.go │ │ ├── z9.go │ │ ├── z1.go │ │ ├── z18.go │ │ └── z10.go ├── goprint.out ├── deferprint.out ├── alias3.go ├── linkname.dir │ └── linkname1.go ├── interface │ └── embed3.go └── oldescape_linkname.dir │ └── linkname1.go ├── doc ├── articles │ ├── wiki │ │ ├── test_Test.txt.good │ │ ├── go.mod │ │ ├── test_view.good │ │ ├── view.html │ │ ├── test_edit.good │ │ └── edit.html │ └── index.html ├── ie.css ├── share.png ├── gopher │ ├── doc.png │ ├── pkg.png │ ├── ref.png │ ├── run.png │ ├── bumper.png │ ├── help.png │ ├── talks.png │ ├── biplane.jpg │ ├── gopherbw.png │ ├── project.png │ ├── fiveyears.jpg │ ├── frontpage.png │ ├── gophercolor.png │ ├── modelsheet.jpg │ ├── appenginelogo.gif │ ├── bumper192x108.png │ ├── bumper320x180.png │ ├── bumper480x270.png │ ├── bumper640x360.png │ ├── appenginegopher.jpg │ ├── gophercolor16x16.png │ ├── pencil │ │ ├── gopherhat.jpg │ │ ├── gophermega.jpg │ │ ├── gopherswim.jpg │ │ ├── gopherhelmet.jpg │ │ ├── gopherrunning.jpg │ │ └── gopherswrench.jpg │ ├── appenginegophercolor.jpg │ └── README ├── go-logo-black.png ├── go-logo-blue.png ├── go-logo-white.png ├── codewalk │ └── popout.png ├── play │ └── hello.go └── progs │ └── eff_unused1.go ├── robots.txt ├── misc ├── cgo │ ├── stdio │ │ └── testdata │ │ │ └── hello.out │ ├── testshared │ │ └── testdata │ │ │ ├── implicit │ │ │ └── implicit.go │ │ │ ├── execgo │ │ │ └── exe.go │ │ │ ├── exe3 │ │ │ └── exe3.go │ │ │ ├── exe2 │ │ │ └── exe2.go │ │ │ ├── explicit │ │ │ └── explicit.go │ │ │ ├── implicitcmd │ │ │ └── implicitcmd.go │ │ │ ├── gcdata │ │ │ └── p │ │ │ │ └── p.go │ │ │ └── issue39777 │ │ │ └── b │ │ │ └── b.go │ ├── errors │ │ └── testdata │ │ │ └── issue18889.go │ ├── test │ │ ├── testdata │ │ │ ├── issue8828 │ │ │ │ ├── trivial.go │ │ │ │ └── issue8828.c │ │ │ ├── issue9026.go │ │ │ ├── issue8756 │ │ │ │ └── issue8756.go │ │ │ └── gcc68255 │ │ │ │ └── c.h │ │ ├── issue4339.h │ │ └── issue8331.h │ └── fortran │ │ └── helloworld │ │ └── helloworld.f90 ├── chrome │ └── gophertool │ │ ├── gopher.png │ │ └── README.txt └── editors ├── favicon.ico ├── lib └── time │ └── zoneinfo.zip └── .github └── CODE_OF_CONDUCT.md /src/go/build/testdata/empty/dummy: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixedbugs/bug328.out: -------------------------------------------------------------------------------- 1 | 0x0 2 | -------------------------------------------------------------------------------- /src/os/testdata/issue37161/a: -------------------------------------------------------------------------------- 1 | a 2 | -------------------------------------------------------------------------------- /src/os/testdata/issue37161/b: -------------------------------------------------------------------------------- 1 | b 2 | -------------------------------------------------------------------------------- /src/os/testdata/issue37161/c: -------------------------------------------------------------------------------- 1 | c 2 | -------------------------------------------------------------------------------- /test/fixedbugs/bug206.out: -------------------------------------------------------------------------------- 1 | 0 2 | 0 3 | -------------------------------------------------------------------------------- /test/fixedbugs/issue22683.out: -------------------------------------------------------------------------------- 1 | true 2 | -------------------------------------------------------------------------------- /test/fixedbugs/issue30956.out: -------------------------------------------------------------------------------- 1 | {42} 2 | -------------------------------------------------------------------------------- /test/fixedbugs/issue31782.out: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /test/fixedbugs/issue32175.out: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /test/helloworld.out: -------------------------------------------------------------------------------- 1 | hello, world 2 | -------------------------------------------------------------------------------- /test/sigchld.out: -------------------------------------------------------------------------------- 1 | survived SIGCHLD 2 | -------------------------------------------------------------------------------- /src/archive/tar/testdata/small.txt: -------------------------------------------------------------------------------- 1 | Kilts -------------------------------------------------------------------------------- /src/net/http/testdata/file: -------------------------------------------------------------------------------- 1 | 0123456789 2 | -------------------------------------------------------------------------------- /src/net/http/testdata/style.css: -------------------------------------------------------------------------------- 1 | body {} 2 | -------------------------------------------------------------------------------- /test/fixedbugs/issue22326.out: -------------------------------------------------------------------------------- 1 | abc_d 2 | -------------------------------------------------------------------------------- /test/fixedbugs/issue24693.out: -------------------------------------------------------------------------------- 1 | ok 2 | ok 3 | -------------------------------------------------------------------------------- /test/fixedbugs/issue25322.out: -------------------------------------------------------------------------------- 1 | 40000000 2 | -------------------------------------------------------------------------------- /test/fixedbugs/issue31959.out: -------------------------------------------------------------------------------- 1 | {} 2 | 0 3 | -------------------------------------------------------------------------------- /doc/articles/wiki/test_Test.txt.good: -------------------------------------------------------------------------------- 1 | some content -------------------------------------------------------------------------------- /doc/ie.css: -------------------------------------------------------------------------------- 1 | #nav-main li { display: inline; } 2 | -------------------------------------------------------------------------------- /robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: / 3 | -------------------------------------------------------------------------------- /src/cmd/internal/test2json/testdata/empty.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/cmd/internal/test2json/testdata/empty.test: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/crypto/tls/testdata/Client-TLSv10-Ed25519: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/crypto/tls/testdata/Client-TLSv11-Ed25519: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/go/build/testdata/doc/e.go: -------------------------------------------------------------------------------- 1 | package doc 2 | -------------------------------------------------------------------------------- /src/io/ioutil/testdata/hello: -------------------------------------------------------------------------------- 1 | Hello, Gophers! 2 | -------------------------------------------------------------------------------- /src/net/testdata/singleline-hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.2 odin -------------------------------------------------------------------------------- /test/fixedbugs/issue21808.out: -------------------------------------------------------------------------------- 1 | A 2 | 3 | B 4 | -------------------------------------------------------------------------------- /test/fixedbugs/issue31636.out: -------------------------------------------------------------------------------- 1 | c 2 | b 3 | a 4 | -------------------------------------------------------------------------------- /test/fixedbugs/issue32680.out: -------------------------------------------------------------------------------- 1 | 2561423721 2 | -------------------------------------------------------------------------------- /test/fixedbugs/issue6899.out: -------------------------------------------------------------------------------- 1 | -0.000000e+000 2 | -------------------------------------------------------------------------------- /misc/cgo/stdio/testdata/hello.out: -------------------------------------------------------------------------------- 1 | hello, world 2 | -------------------------------------------------------------------------------- /src/archive/tar/testdata/small2.txt: -------------------------------------------------------------------------------- 1 | Google.com 2 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/star/tags.txt: -------------------------------------------------------------------------------- 1 | * -------------------------------------------------------------------------------- /src/go/build/testdata/doc/c_test.go: -------------------------------------------------------------------------------- 1 | package doc 2 | -------------------------------------------------------------------------------- /src/net/testdata/openbsd-tcp-resolv.conf: -------------------------------------------------------------------------------- 1 | options tcp -------------------------------------------------------------------------------- /src/cmd/compile/internal/test/test.go: -------------------------------------------------------------------------------- 1 | package test 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/failssh/ssh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exit 1 3 | -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-zero.wb.expect: -------------------------------------------------------------------------------- 1 | 2$ -------------------------------------------------------------------------------- /src/go/build/testdata/doc/b_test.go: -------------------------------------------------------------------------------- 1 | package doc_test 2 | -------------------------------------------------------------------------------- /src/net/http/testdata/index.html: -------------------------------------------------------------------------------- 1 | index.html says hello 2 | -------------------------------------------------------------------------------- /src/net/testdata/empty-resolv.conf: -------------------------------------------------------------------------------- 1 | # /etc/resolv.conf 2 | -------------------------------------------------------------------------------- /src/net/testdata/freebsd-usevc-resolv.conf: -------------------------------------------------------------------------------- 1 | options usevc -------------------------------------------------------------------------------- /src/net/testdata/large-ndots-resolv.conf: -------------------------------------------------------------------------------- 1 | options ndots:16 -------------------------------------------------------------------------------- /src/net/testdata/linux-use-vc-resolv.conf: -------------------------------------------------------------------------------- 1 | options use-vc -------------------------------------------------------------------------------- /test/fixedbugs/issue21879.out: -------------------------------------------------------------------------------- 1 | main.main 2 | main.main 3 | -------------------------------------------------------------------------------- /test/fixedbugs/issue28390.out: -------------------------------------------------------------------------------- 1 | 1 2 | {2 3 map[3:3]} 3 | -------------------------------------------------------------------------------- /src/cmd/doc/testdata/nested/empty/empty.go: -------------------------------------------------------------------------------- 1 | package empty 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/modlegacy/src/new/p2/p2.go: -------------------------------------------------------------------------------- 1 | package p2 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/modlegacy/src/old/p2/p2.go: -------------------------------------------------------------------------------- 1 | package p2 2 | -------------------------------------------------------------------------------- /src/cmd/vet/testdata/testingpkg/tests.go: -------------------------------------------------------------------------------- 1 | package testdata 2 | -------------------------------------------------------------------------------- /src/go/build/testdata/doc/f.go: -------------------------------------------------------------------------------- 1 | // Correct 2 | package doc 3 | -------------------------------------------------------------------------------- /src/net/testdata/invalid-ndots-resolv.conf: -------------------------------------------------------------------------------- 1 | options ndots:invalid -------------------------------------------------------------------------------- /src/net/testdata/negative-ndots-resolv.conf: -------------------------------------------------------------------------------- 1 | options ndots:-1 -------------------------------------------------------------------------------- /test/fixedbugs/issue5957.dir/b.go: -------------------------------------------------------------------------------- 1 | package surprise2 2 | 3 | -------------------------------------------------------------------------------- /src/cmd/api/testdata/src/issue21181/dep/p_amd64.go: -------------------------------------------------------------------------------- 1 | package dep 2 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/android/tags.txt: -------------------------------------------------------------------------------- 1 | android arm64 -------------------------------------------------------------------------------- /src/cmd/go/testdata/modlegacy/src/new/go.mod: -------------------------------------------------------------------------------- 1 | module "new/v2" 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/modlegacy/src/new/sub/inner/x/x.go: -------------------------------------------------------------------------------- 1 | package x 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/modlegacy/src/new/sub/x/v1/y/y.go: -------------------------------------------------------------------------------- 1 | package y 2 | -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-zero.wb.expect-noinput: -------------------------------------------------------------------------------- 1 | 2$ -------------------------------------------------------------------------------- /src/go/build/testdata/cgo_disabled/empty.go: -------------------------------------------------------------------------------- 1 | package cgo_disabled 2 | -------------------------------------------------------------------------------- /src/go/build/testdata/withvendor/src/a/vendor/c/d/d.go: -------------------------------------------------------------------------------- 1 | package d 2 | -------------------------------------------------------------------------------- /src/net/testdata/single-request-resolv.conf: -------------------------------------------------------------------------------- 1 | options single-request -------------------------------------------------------------------------------- /test/bench/go1/go.mod: -------------------------------------------------------------------------------- 1 | module test/bench/go1 2 | 3 | go 1.12 4 | -------------------------------------------------------------------------------- /test/fixedbugs/issue30709.out: -------------------------------------------------------------------------------- 1 | true 2 | true 3 | true 4 | true 5 | -------------------------------------------------------------------------------- /test/printbig.out: -------------------------------------------------------------------------------- 1 | -9223372036854775808 2 | 9223372036854775807 3 | -------------------------------------------------------------------------------- /doc/articles/wiki/go.mod: -------------------------------------------------------------------------------- 1 | module doc/articles/wiki 2 | 3 | go 1.14 4 | -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/favicon.ico -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/illumos/tags.txt: -------------------------------------------------------------------------------- 1 | illumos amd64 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/modlegacy/src/new/sub/go.mod: -------------------------------------------------------------------------------- 1 | module new/sub/v2 2 | -------------------------------------------------------------------------------- /src/cmd/vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /test/fixedbugs/issue21887.out: -------------------------------------------------------------------------------- 1 | 4294967295 2 | 18446744073709551615 3 | -------------------------------------------------------------------------------- /test/fixedbugs/issue35576.out: -------------------------------------------------------------------------------- 1 | -42+4.200000e+001x-42 +4.200000e+001 x 2 | -------------------------------------------------------------------------------- /test/fixedbugs/issue5957.dir/a.go: -------------------------------------------------------------------------------- 1 | package surprise 2 | 3 | var X int 4 | -------------------------------------------------------------------------------- /test/ken/string.out: -------------------------------------------------------------------------------- 1 | abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz 2 | -------------------------------------------------------------------------------- /doc/share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/share.png -------------------------------------------------------------------------------- /src/cmd/vendor/golang.org/x/xerrors/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15992.out: -------------------------------------------------------------------------------- 1 | 3 [97 98 99] 2 | 3 [97 98 99] 3 | 1 4 | 0 5 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/modlegacy/src/new/sub/inner/go.mod: -------------------------------------------------------------------------------- 1 | module new/sub/inner 2 | -------------------------------------------------------------------------------- /src/go/build/testdata/doc/a_test.go: -------------------------------------------------------------------------------- 1 | // Doc from xtests 2 | package doc_test 3 | -------------------------------------------------------------------------------- /src/go/build/testdata/doc/d_test.go: -------------------------------------------------------------------------------- 1 | // Doc from regular tests. 2 | package doc 3 | -------------------------------------------------------------------------------- /src/go/build/testdata/withvendor/src/a/b/b.go: -------------------------------------------------------------------------------- 1 | package b 2 | 3 | import _ "c/d" 4 | -------------------------------------------------------------------------------- /src/net/testdata/single-request-reopen-resolv.conf: -------------------------------------------------------------------------------- 1 | options single-request-reopen -------------------------------------------------------------------------------- /doc/gopher/doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/doc.png -------------------------------------------------------------------------------- /doc/gopher/pkg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/pkg.png -------------------------------------------------------------------------------- /doc/gopher/ref.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/ref.png -------------------------------------------------------------------------------- /doc/gopher/run.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/run.png -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/star/x.go: -------------------------------------------------------------------------------- 1 | package x 2 | 3 | import "import1" 4 | -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/stdin1.golden: -------------------------------------------------------------------------------- 1 | //gofmt -stdin 2 | 3 | if x { 4 | y 5 | } 6 | -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/stdin1.input: -------------------------------------------------------------------------------- 1 | //gofmt -stdin 2 | 3 | if x { 4 | y 5 | } 6 | -------------------------------------------------------------------------------- /src/syscall/zsysnum_windows_386.go: -------------------------------------------------------------------------------- 1 | // nothing to see here 2 | 3 | package syscall 4 | -------------------------------------------------------------------------------- /src/syscall/zsysnum_windows_amd64.go: -------------------------------------------------------------------------------- 1 | // nothing to see here 2 | 3 | package syscall 4 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z11.go: -------------------------------------------------------------------------------- 1 | 2 | //line x11.go:4 3 | package main 4 | func F11() {} 5 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z12.go: -------------------------------------------------------------------------------- 1 | 2 | //line x12.go:4 3 | package main 4 | func F12() {} 5 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z13.go: -------------------------------------------------------------------------------- 1 | 2 | //line x13.go:4 3 | package main 4 | func F13() {} 5 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z14.go: -------------------------------------------------------------------------------- 1 | 2 | //line x14.go:4 3 | package main 4 | func F14() {} 5 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z15.go: -------------------------------------------------------------------------------- 1 | 2 | //line x15.go:4 3 | package main 4 | func F15() {} 5 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z16.go: -------------------------------------------------------------------------------- 1 | 2 | //line x16.go:4 3 | package main 4 | func F16() {} 5 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z17.go: -------------------------------------------------------------------------------- 1 | 2 | //line x17.go:4 3 | package main 4 | func F17() {} 5 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z19.go: -------------------------------------------------------------------------------- 1 | 2 | //line x19.go:4 3 | package main 4 | func F19() {} 5 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z2.go: -------------------------------------------------------------------------------- 1 | 2 | //line x2.go:4 3 | package main 4 | func F2() {} 5 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z20.go: -------------------------------------------------------------------------------- 1 | 2 | //line x20.go:4 3 | package main 4 | func F20() {} 5 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z3.go: -------------------------------------------------------------------------------- 1 | 2 | //line x3.go:4 3 | package main 4 | func F3() {} 5 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z4.go: -------------------------------------------------------------------------------- 1 | 2 | //line x4.go:4 3 | package main 4 | func F4() {} 5 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z5.go: -------------------------------------------------------------------------------- 1 | 2 | //line x5.go:4 3 | package main 4 | func F5() {} 5 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z6.go: -------------------------------------------------------------------------------- 1 | 2 | //line x6.go:4 3 | package main 4 | func F6() {} 5 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z7.go: -------------------------------------------------------------------------------- 1 | 2 | //line x7.go:4 3 | package main 4 | func F7() {} 5 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z8.go: -------------------------------------------------------------------------------- 1 | 2 | //line x8.go:4 3 | package main 4 | func F8() {} 5 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z9.go: -------------------------------------------------------------------------------- 1 | 2 | //line x9.go:4 3 | package main 4 | func F9() {} 5 | -------------------------------------------------------------------------------- /test/fixedbugs/issue36085.dir/a.go: -------------------------------------------------------------------------------- 1 | package a 2 | 3 | type W = map[int32]interface{} 4 | -------------------------------------------------------------------------------- /test/goprint.out: -------------------------------------------------------------------------------- 1 | 42 true false true +1.500000e+000 world 0x0 [0/0]0x0 0x0 0x0 255 2 | -------------------------------------------------------------------------------- /doc/go-logo-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/go-logo-black.png -------------------------------------------------------------------------------- /doc/go-logo-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/go-logo-blue.png -------------------------------------------------------------------------------- /doc/go-logo-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/go-logo-white.png -------------------------------------------------------------------------------- /doc/gopher/bumper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/bumper.png -------------------------------------------------------------------------------- /doc/gopher/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/help.png -------------------------------------------------------------------------------- /doc/gopher/talks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/talks.png -------------------------------------------------------------------------------- /lib/time/zoneinfo.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/lib/time/zoneinfo.zip -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/android/want.txt: -------------------------------------------------------------------------------- 1 | a 2 | b 3 | c 4 | d 5 | e 6 | f 7 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/illumos/want.txt: -------------------------------------------------------------------------------- 1 | a 2 | b 3 | c 4 | d 5 | e 6 | f 7 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/modlegacy/src/new/new.go: -------------------------------------------------------------------------------- 1 | package new 2 | 3 | import _ "new/v2/p2" 4 | -------------------------------------------------------------------------------- /src/cmd/vendor/golang.org/x/xerrors/go.mod: -------------------------------------------------------------------------------- 1 | module golang.org/x/xerrors 2 | 3 | go 1.11 4 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z1.go: -------------------------------------------------------------------------------- 1 | 2 | 3 | //line x1.go:4 4 | package main 5 | func F1() {} 6 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z18.go: -------------------------------------------------------------------------------- 1 | 2 | 3 | //line x18.go:4 4 | package main 5 | func F18() {} 6 | -------------------------------------------------------------------------------- /test/fixedbugs/bug409.out: -------------------------------------------------------------------------------- 1 | +1.000000e+000 +2.000000e+000 +3.000000e+000 +4.000000e+000 2 | -------------------------------------------------------------------------------- /test/fixedbugs/issue11053.out: -------------------------------------------------------------------------------- 1 | Starting 2 | Before, *resp.V= 42 3 | After, *resp.V= 42 4 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15470.dir/b.go: -------------------------------------------------------------------------------- 1 | package b 2 | 3 | import _ "./a" // must not fail 4 | -------------------------------------------------------------------------------- /test/fixedbugs/issue5614.dir/y.go: -------------------------------------------------------------------------------- 1 | package y 2 | 3 | import "./x" 4 | 5 | var T = x.S 6 | -------------------------------------------------------------------------------- /doc/codewalk/popout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/codewalk/popout.png -------------------------------------------------------------------------------- /doc/gopher/biplane.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/biplane.jpg -------------------------------------------------------------------------------- /doc/gopher/gopherbw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/gopherbw.png -------------------------------------------------------------------------------- /doc/gopher/project.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/project.png -------------------------------------------------------------------------------- /src/cmd/doc/testdata/nested/nested/real.go: -------------------------------------------------------------------------------- 1 | package nested 2 | 3 | type Foo struct { 4 | } 5 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/android/c_linux.go: -------------------------------------------------------------------------------- 1 | package android 2 | 3 | import _ "c" 4 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/star/want.txt: -------------------------------------------------------------------------------- 1 | import1 2 | import2 3 | import3 4 | import4 5 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/star/x_darwin.go: -------------------------------------------------------------------------------- 1 | package xxxx 2 | 3 | import "import3" 4 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/star/x_windows.go: -------------------------------------------------------------------------------- 1 | package x 2 | 3 | import "import2" 4 | -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/stdin4.golden: -------------------------------------------------------------------------------- 1 | //gofmt -stdin 2 | 3 | // comment 4 | 5 | i := 0 6 | -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/stdin4.input: -------------------------------------------------------------------------------- 1 | //gofmt -stdin 2 | 3 | // comment 4 | 5 | i := 0 6 | -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/stdin5.input: -------------------------------------------------------------------------------- 1 | //gofmt -stdin 2 | 3 | i :=5// Line comment without newline. -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/pointer.go: -------------------------------------------------------------------------------- 1 | package pointer 2 | 3 | type Int8Ptr *int8 4 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z10.go: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | //line x10.go:4 5 | package main 6 | func F10() {} 7 | -------------------------------------------------------------------------------- /test/fixedbugs/issue8280.dir/a.go: -------------------------------------------------------------------------------- 1 | package a 2 | 3 | var Bar = func() (_ int) { return 0 } 4 | -------------------------------------------------------------------------------- /test/fixedbugs/issue8280.dir/b.go: -------------------------------------------------------------------------------- 1 | package b 2 | 3 | import "./a" 4 | 5 | var foo = a.Bar 6 | -------------------------------------------------------------------------------- /doc/gopher/fiveyears.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/fiveyears.jpg -------------------------------------------------------------------------------- /doc/gopher/frontpage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/frontpage.png -------------------------------------------------------------------------------- /doc/gopher/gophercolor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/gophercolor.png -------------------------------------------------------------------------------- /doc/gopher/modelsheet.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/modelsheet.jpg -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/android/a_android.go: -------------------------------------------------------------------------------- 1 | package android 2 | 3 | import _ "a" 4 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/android/d_linux_arm64.go: -------------------------------------------------------------------------------- 1 | package android 2 | 3 | import _ "d" 4 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/illumos/a_illumos.go: -------------------------------------------------------------------------------- 1 | package illumos 2 | 3 | import _ "a" 4 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/illumos/c_solaris.go: -------------------------------------------------------------------------------- 1 | package illumos 2 | 3 | import _ "c" 4 | -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/stdin5.golden: -------------------------------------------------------------------------------- 1 | //gofmt -stdin 2 | 3 | i := 5 // Line comment without newline. -------------------------------------------------------------------------------- /src/html/template/testdata/file1.tmpl: -------------------------------------------------------------------------------- 1 | {{define "x"}}TEXT{{end}} 2 | {{define "dotV"}}{{.V}}{{end}} 3 | -------------------------------------------------------------------------------- /src/html/template/testdata/tmpl1.tmpl: -------------------------------------------------------------------------------- 1 | template1 2 | {{define "x"}}x{{end}} 3 | {{template "y"}} 4 | -------------------------------------------------------------------------------- /src/html/template/testdata/tmpl2.tmpl: -------------------------------------------------------------------------------- 1 | template2 2 | {{define "y"}}y{{end}} 3 | {{template "x"}} 4 | -------------------------------------------------------------------------------- /src/text/template/testdata/file1.tmpl: -------------------------------------------------------------------------------- 1 | {{define "x"}}TEXT{{end}} 2 | {{define "dotV"}}{{.V}}{{end}} 3 | -------------------------------------------------------------------------------- /src/text/template/testdata/tmpl1.tmpl: -------------------------------------------------------------------------------- 1 | template1 2 | {{define "x"}}x{{end}} 3 | {{template "y"}} 4 | -------------------------------------------------------------------------------- /src/text/template/testdata/tmpl2.tmpl: -------------------------------------------------------------------------------- 1 | template2 2 | {{define "y"}}y{{end}} 3 | {{template "x"}} 4 | -------------------------------------------------------------------------------- /doc/gopher/appenginelogo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/appenginelogo.gif -------------------------------------------------------------------------------- /doc/gopher/bumper192x108.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/bumper192x108.png -------------------------------------------------------------------------------- /doc/gopher/bumper320x180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/bumper320x180.png -------------------------------------------------------------------------------- /doc/gopher/bumper480x270.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/bumper480x270.png -------------------------------------------------------------------------------- /doc/gopher/bumper640x360.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/bumper640x360.png -------------------------------------------------------------------------------- /src/cmd/api/testdata/src/issue29837/p/README: -------------------------------------------------------------------------------- 1 | Empty directory for test, see https://golang.org/issues/29837. -------------------------------------------------------------------------------- /src/cmd/doc/testdata/nested/ignore.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | // Ignored package 4 | package nested 5 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/android/b_android_arm64.go: -------------------------------------------------------------------------------- 1 | package android 2 | 3 | import _ "b" 4 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/illumos/b_illumos_amd64.go: -------------------------------------------------------------------------------- 1 | package illumos 2 | 3 | import _ "b" 4 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/illumos/d_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | package illumos 2 | 3 | import _ "d" 4 | -------------------------------------------------------------------------------- /src/net/testdata/case-hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.1 PreserveMe PreserveMe.local 2 | ::1 PreserveMe PreserveMe.local 3 | -------------------------------------------------------------------------------- /doc/gopher/appenginegopher.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/appenginegopher.jpg -------------------------------------------------------------------------------- /doc/gopher/gophercolor16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/gophercolor16x16.png -------------------------------------------------------------------------------- /doc/gopher/pencil/gopherhat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/pencil/gopherhat.jpg -------------------------------------------------------------------------------- /src/archive/tar/testdata/v7.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/tar/testdata/v7.tar -------------------------------------------------------------------------------- /src/archive/zip/testdata/dd.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/dd.zip -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/line2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void f2() 4 | { 5 | printf("hello\n"); 6 | } 7 | -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/split.c: -------------------------------------------------------------------------------- 1 | // gcc -gsplit-dwarf split.c -o split.elf 2 | 3 | int main() 4 | { 5 | } 6 | -------------------------------------------------------------------------------- /test/fixedbugs/issue10066.dir/b.go: -------------------------------------------------------------------------------- 1 | package b 2 | 3 | import "./a" 4 | 5 | func test() { 6 | a.Do() 7 | } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15609.dir/call_decl.go: -------------------------------------------------------------------------------- 1 | // +build amd64 386 2 | 3 | package main 4 | 5 | func jump() 6 | -------------------------------------------------------------------------------- /test/fixedbugs/issue16133.dir/b.go: -------------------------------------------------------------------------------- 1 | package b 2 | 3 | import "./a2" 4 | 5 | type T struct { 6 | X a.X 7 | } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue4326.dir/p2.go: -------------------------------------------------------------------------------- 1 | package p2 2 | 3 | import "./p1" 4 | 5 | func NewO() p1.O { return nil } 6 | -------------------------------------------------------------------------------- /doc/gopher/pencil/gophermega.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/pencil/gophermega.jpg -------------------------------------------------------------------------------- /doc/gopher/pencil/gopherswim.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/pencil/gopherswim.jpg -------------------------------------------------------------------------------- /misc/cgo/testshared/testdata/implicit/implicit.go: -------------------------------------------------------------------------------- 1 | package implicit 2 | 3 | func I() int { 4 | return 42 5 | } 6 | -------------------------------------------------------------------------------- /misc/chrome/gophertool/gopher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/misc/chrome/gophertool/gopher.png -------------------------------------------------------------------------------- /src/archive/zip/testdata/test.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/test.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/unix.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/unix.zip -------------------------------------------------------------------------------- /src/cmd/api/testdata/src/issue21181/dep/p.go: -------------------------------------------------------------------------------- 1 | package dep 2 | 3 | type Interface interface { 4 | N([]byte) 5 | } 6 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/android/e.go: -------------------------------------------------------------------------------- 1 | // +build android 2 | 3 | package android 4 | 5 | import _ "e" 6 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/android/f.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | 3 | package android 4 | 5 | import _ "f" 6 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/illumos/e.go: -------------------------------------------------------------------------------- 1 | // +build illumos 2 | 3 | package illumos 4 | 5 | import _ "e" 6 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/illumos/f.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | 3 | package illumos 4 | 5 | import _ "f" 6 | -------------------------------------------------------------------------------- /src/go/build/testdata/multi/file.go: -------------------------------------------------------------------------------- 1 | // Test data - not compiled. 2 | 3 | package main 4 | 5 | func main() {} 6 | -------------------------------------------------------------------------------- /src/go/build/testdata/other/file/file.go: -------------------------------------------------------------------------------- 1 | // Test data - not compiled. 2 | 3 | package file 4 | 5 | func F() {} 6 | -------------------------------------------------------------------------------- /src/image/testdata/video-001.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.gif -------------------------------------------------------------------------------- /src/image/testdata/video-001.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.png -------------------------------------------------------------------------------- /src/runtime/pprof/testdata/test32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/runtime/pprof/testdata/test32 -------------------------------------------------------------------------------- /src/runtime/pprof/testdata/test64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/runtime/pprof/testdata/test64 -------------------------------------------------------------------------------- /test/fixedbugs/issue16133.dir/a1.go: -------------------------------------------------------------------------------- 1 | package a 2 | 3 | type X string 4 | 5 | func NewX() X { 6 | return "" 7 | } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue16133.dir/a2.go: -------------------------------------------------------------------------------- 1 | package a 2 | 3 | type X string 4 | 5 | func NewX() X { 6 | return "" 7 | } 8 | -------------------------------------------------------------------------------- /doc/gopher/appenginegophercolor.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/appenginegophercolor.jpg -------------------------------------------------------------------------------- /doc/gopher/pencil/gopherhelmet.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/pencil/gopherhelmet.jpg -------------------------------------------------------------------------------- /doc/gopher/pencil/gopherrunning.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/pencil/gopherrunning.jpg -------------------------------------------------------------------------------- /doc/gopher/pencil/gopherswrench.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/doc/gopher/pencil/gopherswrench.jpg -------------------------------------------------------------------------------- /misc/cgo/testshared/testdata/execgo/exe.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | /* 4 | */ 5 | import "C" 6 | 7 | func main() { 8 | } 9 | -------------------------------------------------------------------------------- /src/archive/zip/testdata/readme.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/readme.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/symlink.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/symlink.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/time-go.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/time-go.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/winxp.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/winxp.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/zip64-2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/zip64-2.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/zip64.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/zip64.zip -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/android/g.go: -------------------------------------------------------------------------------- 1 | // +build !android 2 | 3 | package android 4 | 5 | import _ "g" 6 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/illumos/g.go: -------------------------------------------------------------------------------- 1 | // +build !illumos 2 | 3 | package illumos 4 | 5 | import _ "g" 6 | -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/cycle.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/dwarf/testdata/cycle.elf -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/ranges.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/dwarf/testdata/ranges.elf -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/split.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/dwarf/testdata/split.elf -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/typedef.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/dwarf/testdata/typedef.elf -------------------------------------------------------------------------------- /src/debug/gosym/testdata/pcln115.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/gosym/testdata/pcln115.gz -------------------------------------------------------------------------------- /src/html/template/testdata/file2.tmpl: -------------------------------------------------------------------------------- 1 | {{define "dot"}}{{.}}{{end}} 2 | {{define "nested"}}{{template "dot" .}}{{end}} 3 | -------------------------------------------------------------------------------- /src/image/png/testdata/benchGray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/benchGray.png -------------------------------------------------------------------------------- /src/image/png/testdata/benchRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/benchRGB.png -------------------------------------------------------------------------------- /src/image/testdata/triangle-001.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/triangle-001.gif -------------------------------------------------------------------------------- /src/image/testdata/video-001.rgb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.rgb.png -------------------------------------------------------------------------------- /src/internal/xcoff/testdata/printbye.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void printbye(){ 4 | printf("Goodbye\n"); 5 | } 6 | -------------------------------------------------------------------------------- /src/runtime/pprof/testdata/test32be: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/runtime/pprof/testdata/test32be -------------------------------------------------------------------------------- /src/runtime/pprof/testdata/test64be: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/runtime/pprof/testdata/test64be -------------------------------------------------------------------------------- /src/text/template/testdata/file2.tmpl: -------------------------------------------------------------------------------- 1 | {{define "dot"}}{{.}}{{end}} 2 | {{define "nested"}}{{template "dot" .}}{{end}} 3 | -------------------------------------------------------------------------------- /test/fixedbugs/bug467.dir/p3.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "./p2" 4 | 5 | func main() { 6 | _ = p2.SockUnix() 7 | } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue5614.dir/x.go: -------------------------------------------------------------------------------- 1 | package x 2 | 3 | import "./rethinkgo" 4 | 5 | var S *rethinkgo.Session 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/archive/tar/testdata/gnu-utf8.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/tar/testdata/gnu-utf8.tar -------------------------------------------------------------------------------- /src/archive/tar/testdata/neg-size.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/tar/testdata/neg-size.tar -------------------------------------------------------------------------------- /src/archive/zip/testdata/readme.notzip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/readme.notzip -------------------------------------------------------------------------------- /src/archive/zip/testdata/time-7zip.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/time-7zip.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/time-osx.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/time-osx.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/time-win7.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/time-win7.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/utf8-7zip.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/utf8-7zip.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/utf8-osx.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/utf8-osx.zip -------------------------------------------------------------------------------- /src/cmd/api/testdata/src/issue21181/indirect/p.go: -------------------------------------------------------------------------------- 1 | package indirect 2 | 3 | import "dep" 4 | 5 | func F(dep.Interface) {} 6 | -------------------------------------------------------------------------------- /src/cmd/internal/archive/testdata/mycgo/go.go: -------------------------------------------------------------------------------- 1 | package mycgo 2 | 3 | // void c1(void); 4 | // void c2(void); 5 | import "C" 6 | -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/e.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/bzip2/testdata/e.txt.bz2 -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/line-gcc.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/dwarf/testdata/line-gcc.elf -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/typedef.elf4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/dwarf/testdata/typedef.elf4 -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/typedef.macho: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/dwarf/testdata/typedef.macho -------------------------------------------------------------------------------- /src/image/testdata/video-001.5bpp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.5bpp.gif -------------------------------------------------------------------------------- /src/image/testdata/video-001.cmyk.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.cmyk.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.cmyk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.cmyk.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.rgb.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.rgb.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-005.gray.gif -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-005.gray.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-005.gray.png -------------------------------------------------------------------------------- /src/internal/xcoff/testdata/printhello.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void printhello(){ 4 | printf("Helloworld\n"); 5 | } 6 | -------------------------------------------------------------------------------- /src/runtime/race/race_linux_amd64.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/runtime/race/race_linux_amd64.syso -------------------------------------------------------------------------------- /src/runtime/race/race_linux_arm64.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/runtime/race/race_linux_arm64.syso -------------------------------------------------------------------------------- /test/fixedbugs/issue15609.dir/call.go: -------------------------------------------------------------------------------- 1 | // +build !amd64,!386 2 | 3 | package main 4 | 5 | func jump() { 6 | target() 7 | } 8 | -------------------------------------------------------------------------------- /.github/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | Please read the [Go Community Code of Conduct](https://golang.org/conduct). 4 | -------------------------------------------------------------------------------- /doc/articles/wiki/test_view.good: -------------------------------------------------------------------------------- 1 |

Test

2 | 3 |

[edit]

4 | 5 |
some content
6 | -------------------------------------------------------------------------------- /src/archive/tar/testdata/gnu-not-utf8.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/tar/testdata/gnu-not-utf8.tar -------------------------------------------------------------------------------- /src/archive/tar/testdata/invalid-go17.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/tar/testdata/invalid-go17.tar -------------------------------------------------------------------------------- /src/archive/tar/testdata/issue10968.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/tar/testdata/issue10968.tar -------------------------------------------------------------------------------- /src/archive/tar/testdata/issue12435.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/tar/testdata/issue12435.tar -------------------------------------------------------------------------------- /src/archive/tar/testdata/writer-big.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/tar/testdata/writer-big.tar -------------------------------------------------------------------------------- /src/archive/zip/testdata/time-22738.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/time-22738.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/time-infozip.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/time-infozip.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/time-winrar.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/time-winrar.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/time-winzip.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/time-winzip.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/utf8-infozip.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/utf8-infozip.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/utf8-winrar.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/utf8-winrar.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/utf8-winzip.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/utf8-winzip.zip -------------------------------------------------------------------------------- /src/cmd/README.vendor: -------------------------------------------------------------------------------- 1 | See src/README.vendor for information on loading vendored packages 2 | and updating the vendor directory. 3 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/modlegacy/src/old/p1/p1.go: -------------------------------------------------------------------------------- 1 | package p1 2 | 3 | import _ "old/p2" 4 | import _ "new/p1" 5 | import _ "new" 6 | -------------------------------------------------------------------------------- /src/crypto/ecdsa/testdata/SigVer.rsp.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/crypto/ecdsa/testdata/SigVer.rsp.bz2 -------------------------------------------------------------------------------- /src/crypto/ed25519/testdata/sign.input.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/crypto/ed25519/testdata/sign.input.gz -------------------------------------------------------------------------------- /src/crypto/rsa/testdata/pss-vect.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/crypto/rsa/testdata/pss-vect.txt.bz2 -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/line-clang.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/dwarf/testdata/line-clang.elf -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/line-gcc-win.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/dwarf/testdata/line-gcc-win.bin -------------------------------------------------------------------------------- /src/debug/elf/testdata/compressed-32.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/compressed-32.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/compressed-64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/compressed-64.obj -------------------------------------------------------------------------------- /src/debug/pe/testdata/gcc-386-mingw-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/pe/testdata/gcc-386-mingw-exec -------------------------------------------------------------------------------- /src/debug/pe/testdata/gcc-386-mingw-obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/pe/testdata/gcc-386-mingw-obj -------------------------------------------------------------------------------- /src/debug/pe/testdata/gcc-amd64-mingw-obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/pe/testdata/gcc-amd64-mingw-obj -------------------------------------------------------------------------------- /src/encoding/json/testdata/code.json.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/encoding/json/testdata/code.json.gz -------------------------------------------------------------------------------- /src/go/build/testdata/cgo_disabled/cgo_disabled.go: -------------------------------------------------------------------------------- 1 | package cgo_disabled 2 | 3 | import "C" 4 | 5 | import _ "should/be/ignored" 6 | -------------------------------------------------------------------------------- /src/go/build/testdata/multi/file_appengine.go: -------------------------------------------------------------------------------- 1 | // Test data - not compiled. 2 | 3 | package test_package 4 | 5 | func init() {} 6 | -------------------------------------------------------------------------------- /src/image/png/testdata/benchPaletted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/benchPaletted.png -------------------------------------------------------------------------------- /src/image/png/testdata/gray-gradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/gray-gradient.png -------------------------------------------------------------------------------- /src/image/png/testdata/invalid-crc32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/invalid-crc32.png -------------------------------------------------------------------------------- /src/image/png/testdata/invalid-noend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/invalid-noend.png -------------------------------------------------------------------------------- /src/image/png/testdata/invalid-trunc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/invalid-trunc.png -------------------------------------------------------------------------------- /src/image/png/testdata/invalid-zlib.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/invalid-zlib.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.221212.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.221212.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.221212.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.221212.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.410.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.q50.410.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.411.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.q50.411.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.420.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.q50.420.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.422.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.q50.422.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.440.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.q50.440.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.444.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.q50.444.jpeg -------------------------------------------------------------------------------- /src/internal/trace/testdata/http_1_5_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/http_1_5_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/http_1_7_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/http_1_7_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/http_1_9_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/http_1_9_good -------------------------------------------------------------------------------- /src/internal/xcoff/testdata/bigar-ppc64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/xcoff/testdata/bigar-ppc64 -------------------------------------------------------------------------------- /src/net/testdata/domain-resolv.conf: -------------------------------------------------------------------------------- 1 | # /etc/resolv.conf 2 | 3 | search test invalid 4 | domain localdomain 5 | nameserver 8.8.8.8 6 | -------------------------------------------------------------------------------- /src/net/testdata/search-resolv.conf: -------------------------------------------------------------------------------- 1 | # /etc/resolv.conf 2 | 3 | domain localdomain 4 | search test invalid 5 | nameserver 8.8.8.8 6 | -------------------------------------------------------------------------------- /src/runtime/race/race_darwin_amd64.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/runtime/race/race_darwin_amd64.syso -------------------------------------------------------------------------------- /src/runtime/race/race_freebsd_amd64.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/runtime/race/race_freebsd_amd64.syso -------------------------------------------------------------------------------- /src/runtime/race/race_linux_ppc64le.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/runtime/race/race_linux_ppc64le.syso -------------------------------------------------------------------------------- /src/runtime/race/race_netbsd_amd64.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/runtime/race/race_netbsd_amd64.syso -------------------------------------------------------------------------------- /src/runtime/race/race_windows_amd64.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/runtime/race/race_windows_amd64.syso -------------------------------------------------------------------------------- /misc/cgo/errors/testdata/issue18889.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "C" 4 | 5 | func main() { 6 | _ = C.malloc // ERROR HERE 7 | } 8 | -------------------------------------------------------------------------------- /misc/cgo/testshared/testdata/exe3/exe3.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "testshared/dep3" 4 | 5 | func main() { 6 | dep3.D3() 7 | } 8 | -------------------------------------------------------------------------------- /src/archive/tar/testdata/gnu-sparse-big.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/tar/testdata/gnu-sparse-big.tar -------------------------------------------------------------------------------- /src/cmd/doc/testdata/merge/aa.go: -------------------------------------------------------------------------------- 1 | // Package comment A. 2 | package merge 3 | 4 | // A doc. 5 | func A() { 6 | // A comment. 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/doc/testdata/merge/bb.go: -------------------------------------------------------------------------------- 1 | // Package comment B. 2 | package merge 3 | 4 | // B doc. 5 | func B() { 6 | // B comment. 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/link/testdata/testBuildFortvOS/main.m: -------------------------------------------------------------------------------- 1 | extern void GoFunc(); 2 | 3 | int main(int argc, char **argv) { 4 | GoFunc(); 5 | } 6 | -------------------------------------------------------------------------------- /src/cmd/link/testdata/testPErsrc/rsrc.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/cmd/link/testdata/testPErsrc/rsrc.syso -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/random.data.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/bzip2/testdata/random.data.bz2 -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/cppunsuptypes.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/dwarf/testdata/cppunsuptypes.elf -------------------------------------------------------------------------------- /src/debug/elf/testdata/gcc-386-freebsd-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/gcc-386-freebsd-exec -------------------------------------------------------------------------------- /src/debug/elf/testdata/gcc-amd64-linux-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/gcc-amd64-linux-exec -------------------------------------------------------------------------------- /src/debug/elf/testdata/hello-world-core.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/hello-world-core.gz -------------------------------------------------------------------------------- /src/debug/pe/testdata/gcc-amd64-mingw-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/pe/testdata/gcc-amd64-mingw-exec -------------------------------------------------------------------------------- /src/debug/pe/testdata/hello.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int 4 | main(void) 5 | { 6 | printf("hello, world\n"); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /src/debug/plan9obj/testdata/386-plan9-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/plan9obj/testdata/386-plan9-exec -------------------------------------------------------------------------------- /src/image/png/testdata/invalid-palette.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/invalid-palette.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.interlaced.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.interlaced.gif -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.q50.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-005.gray.q50.jpeg -------------------------------------------------------------------------------- /src/internal/trace/testdata/http_1_10_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/http_1_10_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/http_1_11_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/http_1_11_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_1_5_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/stress_1_5_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_1_7_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/stress_1_7_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_1_9_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/stress_1_9_good -------------------------------------------------------------------------------- /src/regexp/testdata/re2-exhaustive.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/regexp/testdata/re2-exhaustive.txt.bz2 -------------------------------------------------------------------------------- /test/fixedbugs/bug467.dir/p2.go: -------------------------------------------------------------------------------- 1 | package p2 2 | 3 | import "./p1" 4 | 5 | func SockUnix() error { var s *p1.SockaddrUnix; return s } 6 | -------------------------------------------------------------------------------- /src/archive/zip/testdata/gophercolor16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/gophercolor16x16.png -------------------------------------------------------------------------------- /src/cmd/api/testdata/src/issue21181/p/p_amd64.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import "indirect" 4 | 5 | var in = []algo{ 6 | {indirect.F}, 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/link/internal/ld/testdata/issue10978/main.s: -------------------------------------------------------------------------------- 1 | // This file is needed to make "go build" work for package with external functions. 2 | -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/fail-issue5747.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/bzip2/testdata/fail-issue5747.bz2 -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/pass-random1.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/bzip2/testdata/pass-random1.bin -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/pass-random1.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/bzip2/testdata/pass-random1.bz2 -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/pass-random2.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/bzip2/testdata/pass-random2.bin -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/pass-random2.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/bzip2/testdata/pass-random2.bz2 -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/pass-sawtooth.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/bzip2/testdata/pass-sawtooth.bz2 -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-pi.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-pi.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-1k.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-rand-1k.in -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/line1.c: -------------------------------------------------------------------------------- 1 | #include "line1.h" 2 | 3 | void f2(); 4 | 5 | int main() 6 | { 7 | f1(); 8 | f2(); 9 | } 10 | -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/line1.h: -------------------------------------------------------------------------------- 1 | static void f1() 2 | { 3 | char buf[10]; 4 | int i; 5 | for(i = 0; i < 10; i++) 6 | buf[i] = 1; 7 | } 8 | -------------------------------------------------------------------------------- /src/debug/elf/testdata/hello.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void 4 | main(int argc, char *argv[]) 5 | { 6 | printf("hello, world\n"); 7 | } 8 | -------------------------------------------------------------------------------- /src/debug/macho/testdata/hello.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int 4 | main(void) 5 | { 6 | printf("hello, world\n"); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /src/debug/plan9obj/testdata/amd64-plan9-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/plan9obj/testdata/amd64-plan9-exec -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/conversions.go: -------------------------------------------------------------------------------- 1 | package conversions 2 | 3 | type Units string 4 | 5 | const Bits = Units("bits") 6 | -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/imports.go: -------------------------------------------------------------------------------- 1 | package imports 2 | 3 | import "fmt" 4 | 5 | var Hello = fmt.Sprintf("Hello, world") 6 | -------------------------------------------------------------------------------- /src/image/png/testdata/benchNRGBA-gradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/benchNRGBA-gradient.png -------------------------------------------------------------------------------- /src/image/png/testdata/benchNRGBA-opaque.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/benchNRGBA-opaque.png -------------------------------------------------------------------------------- /src/image/png/testdata/benchRGB-interlace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/benchRGB-interlace.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn0g01.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn0g02.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn0g04.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn0g08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn0g16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn2c08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn2c16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn3p01.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn3p02.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn3p04.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn4a08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn4a08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn4a16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn4a16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn6a08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn6a08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn6a16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn6a16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbbn0g01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/ftbbn0g01.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbbn0g02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/ftbbn0g02.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbbn0g04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/ftbbn0g04.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbbn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/ftbbn2c16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbbn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/ftbbn3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbgn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/ftbgn2c16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbgn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/ftbgn3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbrn2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/ftbrn2c08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbwn0g16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/ftbwn0g16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbwn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/ftbwn3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbyn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/ftbyn3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftp0n0g08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/ftp0n0g08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftp0n2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/ftp0n2c08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftp0n3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/ftp0n3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftp1n3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/ftp1n3p08.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.q50.2x2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-005.gray.q50.2x2.jpeg -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_1_10_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/stress_1_10_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_1_11_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/stress_1_11_good -------------------------------------------------------------------------------- /test/fixedbugs/bug467.dir/p1.go: -------------------------------------------------------------------------------- 1 | package p1 2 | 3 | type SockaddrUnix int 4 | 5 | func (s SockaddrUnix) Error() string { return "blah" } 6 | -------------------------------------------------------------------------------- /test/fixedbugs/issue36085.dir/b.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "a" 4 | 5 | var w a.W 6 | var X interface{} = &w 7 | 8 | func main() {} 9 | -------------------------------------------------------------------------------- /doc/articles/wiki/view.html: -------------------------------------------------------------------------------- 1 |

{{.Title}}

2 | 3 |

[edit]

4 | 5 |
{{printf "%s" .Body}}
6 | -------------------------------------------------------------------------------- /misc/cgo/test/testdata/issue8828/trivial.go: -------------------------------------------------------------------------------- 1 | package issue8828 2 | 3 | //void foo(); 4 | import "C" 5 | 6 | func Bar() { 7 | C.foo() 8 | } 9 | -------------------------------------------------------------------------------- /src/archive/zip/testdata/crc32-not-streamed.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/crc32-not-streamed.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/test-trailing-junk.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/test-trailing-junk.zip -------------------------------------------------------------------------------- /src/cmd/cover/testdata/html/html_test.go: -------------------------------------------------------------------------------- 1 | package html 2 | 3 | import "testing" 4 | 5 | func TestAll(t *testing.T) { 6 | f() 7 | g() 8 | } 9 | -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/stdin3.input: -------------------------------------------------------------------------------- 1 | //gofmt -stdin 2 | 3 | /* note: no newline at end of file */ 4 | for i := 0; i < 10; i++ { s += i } 5 | -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-pi.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-pi.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-max.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-rand-max.in -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-text.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-zero.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-zero.golden -------------------------------------------------------------------------------- /src/debug/pe/testdata/vmlinuz-4.15.0-47-generic: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/pe/testdata/vmlinuz-4.15.0-47-generic -------------------------------------------------------------------------------- /src/debug/plan9obj/testdata/hello.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | void 5 | main(void) 6 | { 7 | print("hello, world\n"); 8 | } 9 | -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/time.gox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/go/internal/gccgoimporter/testdata/time.gox -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g01-30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn0g01-30.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g02-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn0g02-29.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g04-31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn0g04-31.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p04-31i.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn3p04-31i.png -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_1_5_unordered: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/stress_1_5_unordered -------------------------------------------------------------------------------- /src/internal/xcoff/testdata/hello.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void 4 | main(int argc, char *argv[]) 5 | { 6 | printf("hello, world\n"); 7 | } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue4326.dir/z.go: -------------------------------------------------------------------------------- 1 | package z 2 | 3 | import "./p2" 4 | 5 | func main() { 6 | p2.NewO().RemoveOption("hello", "world") 7 | } 8 | -------------------------------------------------------------------------------- /src/archive/zip/testdata/go-with-datadesc-sig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/archive/zip/testdata/go-with-datadesc-sig.zip -------------------------------------------------------------------------------- /src/cmd/link/testdata/testBuildFortvOS/lib.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "C" 4 | 5 | //export GoFunc 6 | func GoFunc() {} 7 | 8 | func main() {} 9 | -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-null-max.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-null-max.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-pi.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-pi.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-1k.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-rand-1k.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-limit.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-rand-limit.in -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-max.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-rand-max.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-shifts.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-shifts.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-text.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-text.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-zero.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-zero.dyn.expect -------------------------------------------------------------------------------- /src/debug/pe/testdata/gcc-386-mingw-no-symbols-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/pe/testdata/gcc-386-mingw-no-symbols-exec -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/pointer.gox: -------------------------------------------------------------------------------- 1 | v1; 2 | package pointer; 3 | pkgpath pointer; 4 | type >>; 5 | -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/unicode.gox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/go/internal/gccgoimporter/testdata/unicode.gox -------------------------------------------------------------------------------- /src/go/printer/testdata/empty.golden: -------------------------------------------------------------------------------- 1 | // a comment at the beginning of the file 2 | 3 | package empty 4 | 5 | // a comment at the end of the file 6 | -------------------------------------------------------------------------------- /src/go/printer/testdata/empty.input: -------------------------------------------------------------------------------- 1 | // a comment at the beginning of the file 2 | 3 | package empty 4 | 5 | // a comment at the end of the file 6 | -------------------------------------------------------------------------------- /src/image/png/testdata/gray-gradient.interlaced.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/gray-gradient.interlaced.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p08-trns.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/png/testdata/pngsuite/basn3p08-trns.png -------------------------------------------------------------------------------- /test/deferprint.out: -------------------------------------------------------------------------------- 1 | printing: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 | 42 true false true +1.500000e+000 world 0x0 [0/0]0x0 0x0 0x0 255 3 | -------------------------------------------------------------------------------- /misc/cgo/fortran/helloworld/helloworld.f90: -------------------------------------------------------------------------------- 1 | program HelloWorldF90 2 | write(*,*) "Hello World!" 3 | end program HelloWorldF90 4 | -------------------------------------------------------------------------------- /src/cmd/internal/test2json/testdata/benchfail.test: -------------------------------------------------------------------------------- 1 | --- FAIL: BenchmarkFoo 2 | x_test.go:8: My benchmark 3 | FAIL 4 | FAIL command-line-arguments 0.008s 5 | -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-1k.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-rand-1k.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-limit.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-rand-limit.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-shifts.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-shifts.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-shifts.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-shifts.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text-shift.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-text-shift.golden -------------------------------------------------------------------------------- /src/debug/elf/testdata/zdebug-test-gcc484-x86-64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/zdebug-test-gcc484-x86-64.obj -------------------------------------------------------------------------------- /src/debug/gosym/testdata/pclinetest.h: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | // Empty include file to generate z symbols 4 | 5 | 6 | 7 | 8 | 9 | // EOF 10 | -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/escapeinfo.gox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/go/internal/gccgoimporter/testdata/escapeinfo.gox -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/libimportsar.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/go/internal/gccgoimporter/testdata/libimportsar.a -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/v1reflect.gox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/go/internal/gccgoimporter/testdata/v1reflect.gox -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.410.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.q50.410.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.411.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.q50.411.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.420.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.q50.420.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.422.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.q50.422.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.440.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.q50.440.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.444.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.q50.444.progressive.jpeg -------------------------------------------------------------------------------- /src/internal/trace/testdata/user_task_span_1_11_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/user_task_span_1_11_good -------------------------------------------------------------------------------- /src/internal/xcoff/testdata/gcc-ppc32-aix-dwarf2-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/xcoff/testdata/gcc-ppc32-aix-dwarf2-exec -------------------------------------------------------------------------------- /src/internal/xcoff/testdata/gcc-ppc64-aix-dwarf2-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/xcoff/testdata/gcc-ppc64-aix-dwarf2-exec -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/get_custom_domain_wildcard.txt: -------------------------------------------------------------------------------- 1 | [!net] skip 2 | [!exec:git] skip 3 | 4 | go get -u rsc.io/pdf/... 5 | exists $GOPATH/bin/pdfpasswd$GOEXE -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/comments.golden: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | func main() {} 4 | 5 | // comment here 6 | 7 | func f() {} 8 | 9 | //line foo.go:1 10 | -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/comments.input: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | func main() {} 4 | 5 | // comment here 6 | 7 | func f() {} 8 | 9 | //line foo.go:1 10 | -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/stdin3.golden: -------------------------------------------------------------------------------- 1 | //gofmt -stdin 2 | 3 | /* note: no newline at end of file */ 4 | for i := 0; i < 10; i++ { 5 | s += i 6 | } 7 | -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/Isaac.Newton-Opticks.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/bzip2/testdata/Isaac.Newton-Opticks.txt.bz2 -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-null-max.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-null-max.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-null-max.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-null-max.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-pi.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-pi.wb.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-1k.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-rand-1k.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-limit.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-rand-limit.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text-shift.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-text-shift.wb.expect -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/cycle.c: -------------------------------------------------------------------------------- 1 | typedef struct aaa *AAA; 2 | typedef AAA BBB; 3 | struct aaa { BBB val; }; 4 | 5 | AAA x(void) { 6 | return (AAA)0; 7 | } 8 | -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-clang-arm.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/go-relocation-test-clang-arm.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-clang-x86.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/go-relocation-test-clang-x86.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc441-x86.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/go-relocation-test-gcc441-x86.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc492-arm.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/go-relocation-test-gcc492-arm.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc5-ppc.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/go-relocation-test-gcc5-ppc.obj -------------------------------------------------------------------------------- /src/go/doc/testdata/issue17788.0.golden: -------------------------------------------------------------------------------- 1 | // 2 | PACKAGE issue17788 3 | 4 | IMPORTPATH 5 | testdata/issue17788 6 | 7 | FILENAMES 8 | testdata/issue17788.go 9 | -------------------------------------------------------------------------------- /src/go/doc/testdata/issue17788.1.golden: -------------------------------------------------------------------------------- 1 | // 2 | PACKAGE issue17788 3 | 4 | IMPORTPATH 5 | testdata/issue17788 6 | 7 | FILENAMES 8 | testdata/issue17788.go 9 | -------------------------------------------------------------------------------- /src/go/doc/testdata/issue17788.2.golden: -------------------------------------------------------------------------------- 1 | // 2 | PACKAGE issue17788 3 | 4 | IMPORTPATH 5 | testdata/issue17788 6 | 7 | FILENAMES 8 | testdata/issue17788.go 9 | -------------------------------------------------------------------------------- /src/image/testdata/video-001.progressive.truncated.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.progressive.truncated.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.progressive.truncated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.progressive.truncated.png -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.q50.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-005.gray.q50.progressive.jpeg -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_start_stop_1_10_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/stress_start_stop_1_10_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_start_stop_1_11_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/stress_start_stop_1_11_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_start_stop_1_5_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/stress_start_stop_1_5_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_start_stop_1_7_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/stress_start_stop_1_7_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_start_stop_1_9_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/internal/trace/testdata/stress_start_stop_1_9_good -------------------------------------------------------------------------------- /test/ken/cplx0.out: -------------------------------------------------------------------------------- 1 | (+5.000000e+000+6.000000e+000i) 2 | (+5.000000e+000+6.000000e+000i) 3 | (+5.000000e+000+6.000000e+000i) 4 | (+5.000000e+000+6.000000e+000i) 5 | -------------------------------------------------------------------------------- /src/cmd/api/testdata/src/issue21181/p/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import ( 4 | "dep" 5 | ) 6 | 7 | type algo struct { 8 | indrt func(dep.Interface) 9 | } 10 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/get_test_only.txt: -------------------------------------------------------------------------------- 1 | [!net] skip 2 | [!exec:git] skip 3 | 4 | go get golang.org/x/tour/content... 5 | go get -t golang.org/x/tour/content... -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-pi.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-pi.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-limit.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-rand-limit.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text-shift.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-text-shift.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-text.wb.expect-noinput -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc531-s390x.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/go-relocation-test-gcc531-s390x.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc540-mips.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/go-relocation-test-gcc540-mips.obj -------------------------------------------------------------------------------- /src/image/testdata/video-001.separate.dc.progression.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.separate.dc.progression.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.q50.2x2.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-005.gray.q50.2x2.progressive.jpeg -------------------------------------------------------------------------------- /src/cmd/compile/internal/ssa/testdata/infloop.gdb-opt.nexts: -------------------------------------------------------------------------------- 1 | src/cmd/compile/internal/ssa/testdata/infloop.go 2 | 6: func test() { 3 | 8: go func() {}() 4 | 10: for { 5 | -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/ianlancetaylor/demangle/README.md: -------------------------------------------------------------------------------- 1 | # github.com/ianlancetaylor/demangle 2 | 3 | A Go package that can be used to demangle C++ symbol names. 4 | -------------------------------------------------------------------------------- /src/cmd/vendor/golang.org/x/xerrors/README: -------------------------------------------------------------------------------- 1 | This repository holds the transition packages for the new Go 1.13 error values. 2 | See golang.org/design/29934-error-values. 3 | -------------------------------------------------------------------------------- /src/cmd/vet/testdata/testingpkg/tests_test.go: -------------------------------------------------------------------------------- 1 | package testdata 2 | 3 | func Example_BadSuffix() {} // ERROR "Example_BadSuffix has malformed example suffix: BadSuffix" 4 | -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-1k.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-rand-1k.wb.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-shifts.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-shifts.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-shifts.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-shifts.wb.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-text.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-zero.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-zero.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/null-long-match.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/null-long-match.wb.expect-noinput -------------------------------------------------------------------------------- /src/debug/elf/testdata/gcc-amd64-openbsd-debug-with-rela.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/gcc-amd64-openbsd-debug-with-rela.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc424-x86-64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/go-relocation-test-gcc424-x86-64.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc441-x86-64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/go-relocation-test-gcc441-x86-64.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc482-aarch64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/go-relocation-test-gcc482-aarch64.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc482-ppc64le.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/go-relocation-test-gcc482-ppc64le.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc492-mips64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/go-relocation-test-gcc492-mips64.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc492-mipsle.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/go-relocation-test-gcc492-mipsle.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc493-mips64le.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/go-relocation-test-gcc493-mips64le.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc620-sparc64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/go-relocation-test-gcc620-sparc64.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc720-riscv64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/debug/elf/testdata/go-relocation-test-gcc720-riscv64.obj -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/complexnums.go: -------------------------------------------------------------------------------- 1 | package complexnums 2 | 3 | const NN = -1 - 1i 4 | const NP = -1 + 1i 5 | const PN = 1 - 1i 6 | const PP = 1 + 1i 7 | -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/issue27856.go: -------------------------------------------------------------------------------- 1 | package lib 2 | 3 | type M struct { 4 | E E 5 | } 6 | type F struct { 7 | _ *M 8 | } 9 | type E = F 10 | -------------------------------------------------------------------------------- /src/go/internal/gcimporter/testdata/versions/test_go1.11_0i.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/go/internal/gcimporter/testdata/versions/test_go1.11_0i.a -------------------------------------------------------------------------------- /src/go/internal/gcimporter/testdata/versions/test_go1.11_6b.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/go/internal/gcimporter/testdata/versions/test_go1.11_6b.a -------------------------------------------------------------------------------- /src/go/internal/gcimporter/testdata/versions/test_go1.7_0.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/go/internal/gcimporter/testdata/versions/test_go1.7_0.a -------------------------------------------------------------------------------- /src/go/internal/gcimporter/testdata/versions/test_go1.7_1.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/go/internal/gcimporter/testdata/versions/test_go1.7_1.a -------------------------------------------------------------------------------- /src/go/internal/gcimporter/testdata/versions/test_go1.8_4.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/go/internal/gcimporter/testdata/versions/test_go1.8_4.a -------------------------------------------------------------------------------- /src/go/internal/gcimporter/testdata/versions/test_go1.8_5.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/go/internal/gcimporter/testdata/versions/test_go1.8_5.a -------------------------------------------------------------------------------- /src/internal/xcoff/testdata/bigar-empty: -------------------------------------------------------------------------------- 1 | 2 | 0 0 0 0 0 0 -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/get_race.txt: -------------------------------------------------------------------------------- 1 | # Tests issue #20502 2 | 3 | [!net] skip 4 | [!exec:git] skip 5 | [!race] skip 6 | 7 | go get -race github.com/rsc/go-get-issue-9224-cmd -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/issue36000.txt: -------------------------------------------------------------------------------- 1 | # Tests golang.org/issue/36000 2 | 3 | [!cgo] skip 4 | 5 | # go env with CGO flags should not make NUL file 6 | go env CGO_CFLAGS 7 | -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-null-max.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-null-max.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-null-max.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-null-max.wb.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-1k.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-rand-1k.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/null-long-match.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/null-long-match.dyn.expect-noinput -------------------------------------------------------------------------------- /src/go/internal/gcimporter/testdata/versions/test_go1.11_999i.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/go/internal/gcimporter/testdata/versions/test_go1.11_999i.a -------------------------------------------------------------------------------- /src/path/filepath/symlink_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package filepath 4 | 5 | func evalSymlinks(path string) (string, error) { 6 | return walkSymlinks(path) 7 | } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue13777.dir/main.go: -------------------------------------------------------------------------------- 1 | // build 2 | 3 | package main 4 | 5 | import ( 6 | x "./burnin" 7 | ) 8 | 9 | func main() { 10 | x.NewSomething() 11 | } 12 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/mod_case_cgo.txt: -------------------------------------------------------------------------------- 1 | [!cgo] skip 2 | 3 | env GO111MODULE=on 4 | 5 | go get rsc.io/CGO 6 | go build rsc.io/CGO 7 | 8 | -- go.mod -- 9 | module x 10 | -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-limit.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-rand-limit.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-limit.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-rand-limit.wb.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text-shift.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-text-shift.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text-shift.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/compress/flate/testdata/huffman-text-shift.wb.expect-noinput -------------------------------------------------------------------------------- /src/go/build/testdata/other/main.go: -------------------------------------------------------------------------------- 1 | // Test data - not compiled. 2 | 3 | package main 4 | 5 | import ( 6 | "./file" 7 | ) 8 | 9 | func main() { 10 | file.F() 11 | } 12 | -------------------------------------------------------------------------------- /misc/cgo/testshared/testdata/exe2/exe2.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "testshared/dep2" 4 | 5 | func main() { 6 | d := &dep2.Dep2{} 7 | dep2.W = dep2.G() + 1 + d.Method() 8 | } 9 | -------------------------------------------------------------------------------- /misc/cgo/testshared/testdata/explicit/explicit.go: -------------------------------------------------------------------------------- 1 | package explicit 2 | 3 | import ( 4 | "testshared/implicit" 5 | ) 6 | 7 | func E() int { 8 | return implicit.I() 9 | } 10 | -------------------------------------------------------------------------------- /src/cmd/cover/testdata/profile.cov: -------------------------------------------------------------------------------- 1 | mode: set 2 | ./testdata/p.go:10.10,12.2 0 0 3 | ./testdata/p.go:15.10,17.2 0 0 4 | ./testdata/p.go:20.10,22.2 0 0 5 | ./testdata/p.go:25.16,27.2 1 1 6 | -------------------------------------------------------------------------------- /doc/play/hello.go: -------------------------------------------------------------------------------- 1 | // You can edit this code! 2 | // Click here and start typing. 3 | package main 4 | 5 | import "fmt" 6 | 7 | func main() { 8 | fmt.Println("Hello, 世界") 9 | } 10 | -------------------------------------------------------------------------------- /misc/cgo/test/testdata/issue9026.go: -------------------------------------------------------------------------------- 1 | package cgotest 2 | 3 | import ( 4 | "testing" 5 | 6 | "cgotest/issue9026" 7 | ) 8 | 9 | func test9026(t *testing.T) { issue9026.Test(t) } 10 | -------------------------------------------------------------------------------- /misc/editors: -------------------------------------------------------------------------------- 1 | For information about plugins and other support for Go in editors and shells, 2 | see this page on the Go Wiki: 3 | 4 | https://golang.org/wiki/IDEsAndTextEditorPlugins 5 | 6 | -------------------------------------------------------------------------------- /src/cmd/api/testdata/src/issue21181/p/p_generic.go: -------------------------------------------------------------------------------- 1 | // +build !amd64 2 | 3 | package p 4 | 5 | import ( 6 | "indirect" 7 | ) 8 | 9 | var in = []algo{ 10 | {indirect.F}, 11 | } 12 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_retract_rationale_v1.0.0-block.txt: -------------------------------------------------------------------------------- 1 | -- .mod -- 2 | module example.com/retract/rationale 3 | 4 | go 1.14 5 | -- .info -- 6 | {"Version":"v1.0.0-block"} 7 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_retract_rationale_v1.0.0-order.txt: -------------------------------------------------------------------------------- 1 | -- .mod -- 2 | module example.com/retract/rationale 3 | 4 | go 1.14 5 | -- .info -- 6 | {"Version":"v1.0.0-order"} 7 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_retract_rationale_v1.0.1-order.txt: -------------------------------------------------------------------------------- 1 | -- .mod -- 2 | module example.com/retract/rationale 3 | 4 | go 1.14 5 | -- .info -- 6 | {"Version":"v1.0.1-order"} 7 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/mod_help.txt: -------------------------------------------------------------------------------- 1 | env GO111MODULE=on 2 | 3 | # go help get shows usage for get 4 | go help get 5 | stdout 'usage: go get' 6 | stdout 'get using modules to manage source' -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/stdin2.golden: -------------------------------------------------------------------------------- 1 | //gofmt -stdin 2 | 3 | var x int 4 | 5 | func f() { 6 | y := z 7 | /* this is a comment */ 8 | // this is a comment too 9 | } 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/stdin2.input: -------------------------------------------------------------------------------- 1 | //gofmt -stdin 2 | 3 | var x int 4 | 5 | 6 | func f() { y := z 7 | /* this is a comment */ 8 | // this is a comment too 9 | } 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/image/testdata/video-001.separate.dc.progression.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/go/master/src/image/testdata/video-001.separate.dc.progression.progressive.jpeg -------------------------------------------------------------------------------- /src/net/testdata/openbsd-resolv.conf: -------------------------------------------------------------------------------- 1 | # Generated by vio0 dhclient 2 | search c.symbolic-datum-552.internal. 3 | nameserver 169.254.169.254 4 | nameserver 10.240.0.1 5 | lookup file bind 6 | -------------------------------------------------------------------------------- /src/runtime/testdata/testwinlibsignal/dummy.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package main 4 | 5 | //export Dummy 6 | func Dummy() int { 7 | return 42 8 | } 9 | 10 | func main() {} 11 | -------------------------------------------------------------------------------- /test/fixedbugs/issue16133.dir/c.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import ( 4 | "./a1" 5 | "./b" 6 | ) 7 | 8 | var _ = b.T{ 9 | X: a.NewX(), // ERROR `cannot use "a1"\.NewX\(\)` 10 | } 11 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/get_internal_wildcard.txt: -------------------------------------------------------------------------------- 1 | [!net] skip 2 | [!exec:git] skip 3 | 4 | # This used to fail with errors about internal packages 5 | go get github.com/rsc/go-get-issue-11960/... -------------------------------------------------------------------------------- /test/fixedbugs/issue7995b.dir/x2.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "./x1" 4 | 5 | func main() { 6 | s := x1.F(&x1.P) 7 | if s != "100 100\n" { 8 | println("BUG:", s) 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /misc/cgo/test/testdata/issue8756/issue8756.go: -------------------------------------------------------------------------------- 1 | package issue8756 2 | 3 | /* 4 | #cgo LDFLAGS: -lm 5 | #include 6 | */ 7 | import "C" 8 | 9 | func Pow() { 10 | C.pow(1, 2) 11 | } 12 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/vendor_import_missing.txt: -------------------------------------------------------------------------------- 1 | # Missing package error message 2 | ! go build vend/x/vendor/p/p 3 | 4 | -- vend/x/vendor/p/p/p.go -- 5 | package p 6 | 7 | import _ "notfound" 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue10066.dir/a.go: -------------------------------------------------------------------------------- 1 | package a 2 | 3 | import "log" 4 | 5 | func Do() { 6 | Do2() 7 | } 8 | 9 | func Do2() { 10 | println(log.Ldate | log.Ltime | log.Lshortfile) 11 | } 12 | -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/star/x1.go: -------------------------------------------------------------------------------- 1 | // +build blahblh 2 | // +build linux 3 | // +build !linux 4 | // +build windows 5 | // +build darwin 6 | 7 | package x 8 | 9 | import "import4" 10 | -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/ianlancetaylor/demangle/.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | *.a 3 | *.so 4 | ._* 5 | .nfs.* 6 | a.out 7 | *~ 8 | *.orig 9 | *.rej 10 | *.exe 11 | .*.swp 12 | core 13 | demangle.test 14 | -------------------------------------------------------------------------------- /src/runtime/zcallback_windows.go: -------------------------------------------------------------------------------- 1 | // Code generated by wincallback.go using 'go generate'. DO NOT EDIT. 2 | 3 | package runtime 4 | 5 | const cb_max = 2000 // maximum number of windows callbacks allowed 6 | -------------------------------------------------------------------------------- /test/fixedbugs/issue4326.dir/q1.go: -------------------------------------------------------------------------------- 1 | package q1 2 | 3 | func Deref(typ interface{}) interface{} { 4 | if typ, ok := typ.(*int); ok { 5 | return *typ 6 | } 7 | return typ 8 | } 9 | -------------------------------------------------------------------------------- /src/cmd/api/testdata/src/pkg/p3/p3.go: -------------------------------------------------------------------------------- 1 | package p3 2 | 3 | type ThirdBase struct{} 4 | 5 | func (tb *ThirdBase) GoodPlayer() (i, j, k int) 6 | func BadHop(i, j, k int) (l, m bool, n, o *ThirdBase, err error) 7 | -------------------------------------------------------------------------------- /src/cmd/compile/internal/ssa/testdata/i22600.dlv-dbg-race.nexts: -------------------------------------------------------------------------------- 1 | ./testdata/i22600.go 2 | 8: func test() { 3 | 9: pwd, err := os.Getwd() 4 | 10: if err != nil { 5 | 14: fmt.Println(pwd) 6 | 15: } 7 | 20: } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_retract_rationale_v1.0.0-blockwithcomment.txt: -------------------------------------------------------------------------------- 1 | -- .mod -- 2 | module example.com/retract/rationale 3 | 4 | go 1.14 5 | -- .info -- 6 | {"Version":"v1.0.0-blockwithcomment"} 7 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/install_relative_gobin_fail.txt: -------------------------------------------------------------------------------- 1 | env GOBIN=. 2 | ! go install 3 | stderr 'cannot install, GOBIN must be an absolute path' 4 | 5 | -- triv.go -- 6 | package main 7 | 8 | func main() {} -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/mod_list_upgrade.txt: -------------------------------------------------------------------------------- 1 | env GO111MODULE=on 2 | 3 | go list -m -u all 4 | stdout 'rsc.io/quote v1.2.0 \[v1\.5\.2\]' 5 | 6 | -- go.mod -- 7 | module x 8 | require rsc.io/quote v1.2.0 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/mod_vendor_nodeps.txt: -------------------------------------------------------------------------------- 1 | env GO111MODULE=on 2 | 3 | go mod vendor 4 | stderr '^go: no dependencies to vendor' 5 | 6 | -- go.mod -- 7 | module x 8 | -- x.go -- 9 | package x 10 | -------------------------------------------------------------------------------- /src/cmd/vendor/golang.org/x/arch/arm/armasm/Makefile: -------------------------------------------------------------------------------- 1 | tables.go: ../armmap/map.go ../arm.csv 2 | go run ../armmap/map.go -fmt=decoder ../arm.csv >_tables.go && gofmt _tables.go >tables.go && rm _tables.go 3 | -------------------------------------------------------------------------------- /src/debug/gosym/testdata/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | func linefrompc() 4 | func pcfromline() 5 | 6 | func main() { 7 | // Prevent GC of our test symbols 8 | linefrompc() 9 | pcfromline() 10 | } 11 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_badchain_c_v1.0.0.txt: -------------------------------------------------------------------------------- 1 | example.com/badchain/c v1.0.0 2 | 3 | -- .mod -- 4 | module example.com/badchain/c 5 | -- .info -- 6 | {"Version":"v1.0.0"} 7 | -- c.go -- 8 | package c 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_badchain_c_v1.1.0.txt: -------------------------------------------------------------------------------- 1 | example.com/badchain/c v1.1.0 2 | 3 | -- .mod -- 4 | module badchain.example.com/c 5 | -- .info -- 6 | {"Version":"v1.1.0"} 7 | -- c.go -- 8 | package c 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_join_v1.0.0.txt: -------------------------------------------------------------------------------- 1 | Written by hand. 2 | Test case for package moved into a parent module. 3 | 4 | -- .mod -- 5 | module example.com/join 6 | -- .info -- 7 | {"Version": "v1.0.0"} 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/build_unsupported_goos.txt: -------------------------------------------------------------------------------- 1 | [gccgo] skip # gccgo assumes cross-compilation is always possible 2 | 3 | env GOOS=windwos 4 | 5 | ! go build -n exclude 6 | stderr 'unsupported GOOS/GOARCH pair' -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/mod_import_mod.txt: -------------------------------------------------------------------------------- 1 | # Test that GOPATH/pkg/mod is excluded 2 | env GO111MODULE=off 3 | ! go list mod/foo 4 | stderr 'disallowed import path' 5 | 6 | -- mod/foo/foo.go -- 7 | package foo 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/test_compile_binary.txt: -------------------------------------------------------------------------------- 1 | env GO111MODULE=off 2 | 3 | ! go test -c compile_binary/... 4 | stderr 'build comment' 5 | 6 | -- compile_binary/foo_test.go -- 7 | // +build foo 8 | package foo 9 | -------------------------------------------------------------------------------- /src/cmd/vendor/golang.org/x/arch/x86/x86asm/Makefile: -------------------------------------------------------------------------------- 1 | tables.go: ../x86map/map.go ../x86.csv 2 | go run ../x86map/map.go -fmt=decoder ../x86.csv >_tables.go && gofmt _tables.go >tables.go && rm _tables.go 3 | 4 | -------------------------------------------------------------------------------- /src/runtime/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright 2009 The Go Authors. All rights reserved. 2 | # Use of this source code is governed by a BSD-style 3 | # license that can be found in the LICENSE file. 4 | 5 | include ../Make.dist 6 | -------------------------------------------------------------------------------- /test/fixedbugs/issue4879.dir/b.go: -------------------------------------------------------------------------------- 1 | package b 2 | 3 | import "./a" 4 | 5 | func F() { 6 | a.MakePrivateCollection() 7 | a.MakePrivateCollection2() 8 | a.MakePrivateCollection3() 9 | } 10 | -------------------------------------------------------------------------------- /src/cmd/api/testdata/src/pkg/p3/golden.txt: -------------------------------------------------------------------------------- 1 | pkg p3, func BadHop(int, int, int) (bool, bool, *ThirdBase, *ThirdBase, error) 2 | pkg p3, method (*ThirdBase) GoodPlayer() (int, int, int) 3 | pkg p3, type ThirdBase struct 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_noroot_v1.0.0.txt: -------------------------------------------------------------------------------- 1 | A module which has no root package. 2 | 3 | -- .mod -- 4 | module example.com/noroot 5 | -- .info -- 6 | {"Version":"v1.0.0"} 7 | -- pkg/pkg.go -- 8 | package pkg 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_noroot_v1.0.1.txt: -------------------------------------------------------------------------------- 1 | A module which has no root package. 2 | 3 | -- .mod -- 4 | module example.com/noroot 5 | -- .info -- 6 | {"Version":"v1.0.1"} 7 | -- pkg/pkg.go -- 8 | package pkg 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/build_tags_no_comma.txt: -------------------------------------------------------------------------------- 1 | [gccgo] skip 'gccgo has no standard packages' 2 | go build -tags 'tag1 tag2' math 3 | ! go build -tags 'tag1,tag2 tag3' math 4 | stderr 'space-separated list contains comma' -------------------------------------------------------------------------------- /src/vendor/golang.org/x/net/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /src/vendor/golang.org/x/net/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /src/vendor/golang.org/x/sys/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /src/vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /src/vendor/golang.org/x/text/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /src/vendor/golang.org/x/text/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /test/fixedbugs/issue24801.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2018 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | -------------------------------------------------------------------------------- /test/fixedbugs/issue7995b.dir/x1.go: -------------------------------------------------------------------------------- 1 | package x1 2 | 3 | import "fmt" 4 | 5 | var P int 6 | 7 | //go:noinline 8 | func F(x *int) string { 9 | P = 50 10 | *x = 100 11 | return fmt.Sprintln(P, *x) 12 | } 13 | -------------------------------------------------------------------------------- /misc/cgo/test/issue4339.h: -------------------------------------------------------------------------------- 1 | typedef struct Issue4339 Issue4339; 2 | 3 | struct Issue4339 { 4 | char *name; 5 | void (*bar)(void); 6 | }; 7 | 8 | extern Issue4339 exported4339; 9 | void handle4339(Issue4339*); 10 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_retract_rationale_v1.0.0-empty.txt: -------------------------------------------------------------------------------- 1 | -- .mod -- 2 | module example.com/retract/rationale 3 | 4 | go 1.14 5 | -- .info -- 6 | {"Version":"v1.0.0-empty"} 7 | -- empty.go -- 8 | package empty 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_retract_rationale_v1.0.0-long.txt: -------------------------------------------------------------------------------- 1 | -- .mod -- 2 | module example.com/retract/rationale 3 | 4 | go 1.14 5 | -- .info -- 6 | {"Version":"v1.0.0-long"} 7 | -- empty.go -- 8 | package empty 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_retract_v1.0.0-bad.txt: -------------------------------------------------------------------------------- 1 | -- .mod -- 2 | module example.com/retract 3 | 4 | go 1.15 5 | 6 | -- .info -- 7 | {"Version":"v1.0.0-bad"} 8 | 9 | -- retract.go -- 10 | package retract 11 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/get_insecure_custom_domain.txt: -------------------------------------------------------------------------------- 1 | [!net] skip 2 | [!exec:git] skip 3 | 4 | ! go get -d insecure.go-get-issue-15410.appspot.com/pkg/p 5 | go get -d -insecure insecure.go-get-issue-15410.appspot.com/pkg/p -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/run_hello.txt: -------------------------------------------------------------------------------- 1 | env GO111MODULE=off 2 | 3 | # hello world 4 | go run hello.go 5 | stderr 'hello world' 6 | 7 | -- hello.go -- 8 | package main 9 | func main() { println("hello world") } 10 | -------------------------------------------------------------------------------- /src/cmd/vendor/golang.org/x/arch/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /src/cmd/vendor/golang.org/x/arch/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /src/cmd/vendor/golang.org/x/crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /src/cmd/vendor/golang.org/x/sys/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /src/cmd/vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /src/cmd/vendor/golang.org/x/tools/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /src/cmd/vendor/golang.org/x/tools/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /src/vendor/golang.org/x/crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /src/vendor/golang.org/x/crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15609.dir/call_386.s: -------------------------------------------------------------------------------- 1 | #include "textflag.h" 2 | 3 | DATA ·pointer(SB)/4, $·target(SB) 4 | GLOBL ·pointer(SB),RODATA,$4 5 | 6 | TEXT ·jump(SB),NOSPLIT,$4 7 | CALL *·pointer(SB) 8 | RET 9 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15609.dir/call_amd64.s: -------------------------------------------------------------------------------- 1 | #include "textflag.h" 2 | 3 | DATA ·pointer(SB)/8, $·target(SB) 4 | GLOBL ·pointer(SB),RODATA,$8 5 | 6 | TEXT ·jump(SB),NOSPLIT,$8 7 | CALL *·pointer(SB) 8 | RET 9 | -------------------------------------------------------------------------------- /test/fixedbugs/issue4326.dir/q2.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "./q1" 4 | 5 | func main() { 6 | x := 1 7 | y := q1.Deref(&x) 8 | if y != 1 { 9 | panic("y != 1") 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /misc/cgo/testshared/testdata/implicitcmd/implicitcmd.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "testshared/explicit" 5 | "testshared/implicit" 6 | ) 7 | 8 | func main() { 9 | println(implicit.I() + explicit.E()) 10 | } 11 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_newcycle_b_v1.0.0.txt: -------------------------------------------------------------------------------- 1 | example.com/newcycle/b v1.0.0 2 | 3 | -- .mod -- 4 | module example.com/newcycle/b 5 | 6 | require example.com/newcycle/a v1.0.1 7 | -- .info -- 8 | {"Version":"v1.0.0"} 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_retract_v1.0.0-good.txt: -------------------------------------------------------------------------------- 1 | -- .mod -- 2 | module example.com/retract 3 | 4 | go 1.15 5 | 6 | -- .info -- 7 | {"Version":"v1.0.0-good"} 8 | 9 | -- retract.go -- 10 | package retract 11 | -------------------------------------------------------------------------------- /src/cmd/vendor/golang.org/x/crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /src/go/doc/testdata/predeclared.0.golden: -------------------------------------------------------------------------------- 1 | // Package predeclared is a go/doc test for handling of exported ... 2 | PACKAGE predeclared 3 | 4 | IMPORTPATH 5 | testdata/predeclared 6 | 7 | FILENAMES 8 | testdata/predeclared.go 9 | -------------------------------------------------------------------------------- /src/go/doc/testdata/predeclared.2.golden: -------------------------------------------------------------------------------- 1 | // Package predeclared is a go/doc test for handling of exported ... 2 | PACKAGE predeclared 3 | 4 | IMPORTPATH 5 | testdata/predeclared 6 | 7 | FILENAMES 8 | testdata/predeclared.go 9 | -------------------------------------------------------------------------------- /src/runtime/preempt_wasm.s: -------------------------------------------------------------------------------- 1 | // Code generated by mkpreempt.go; DO NOT EDIT. 2 | 3 | #include "go_asm.h" 4 | #include "textflag.h" 5 | 6 | TEXT ·asyncPreempt(SB),NOSPLIT|NOFRAME,$0-0 7 | // No async preemption on wasm 8 | UNDEF 9 | -------------------------------------------------------------------------------- /src/syscall/syscall_windows_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package syscall 6 | -------------------------------------------------------------------------------- /src/syscall/syscall_windows_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package syscall 6 | -------------------------------------------------------------------------------- /src/syscall/zerrors_windows_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package syscall 6 | -------------------------------------------------------------------------------- /src/syscall/zerrors_windows_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package syscall 6 | -------------------------------------------------------------------------------- /test/alias3.go: -------------------------------------------------------------------------------- 1 | // rundir 2 | 3 | // Copyright 2017 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/linkname.dir/linkname1.go: -------------------------------------------------------------------------------- 1 | package x 2 | 3 | func indexByte(xs []byte, b byte) int { // ERROR "xs does not escape" 4 | for i, x := range xs { 5 | if x == b { 6 | return i 7 | } 8 | } 9 | return -1 10 | } 11 | -------------------------------------------------------------------------------- /doc/articles/index.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |

6 | See the Documents page and the 7 | Blog index for a complete list of Go articles. 8 |

9 | -------------------------------------------------------------------------------- /src/cmd/api/testdata/src/pkg/p2/p2.go: -------------------------------------------------------------------------------- 1 | package p2 2 | 3 | type Twoer interface { 4 | PackageTwoMeth() 5 | } 6 | 7 | func F() string {} 8 | func G() Twoer {} 9 | func NewError(s string) error {} 10 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_retract_rationale_v1.0.0-multiline1.txt: -------------------------------------------------------------------------------- 1 | -- .mod -- 2 | module example.com/retract/rationale 3 | 4 | go 1.14 5 | -- .info -- 6 | {"Version":"v1.0.0-multiline1"} 7 | -- empty.go -- 8 | package empty 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_retract_rationale_v1.0.0-multiline2.txt: -------------------------------------------------------------------------------- 1 | -- .mod -- 2 | module example.com/retract/rationale 3 | 4 | go 1.14 5 | -- .info -- 6 | {"Version":"v1.0.0-multiline2"} 7 | -- empty.go -- 8 | package empty 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_retract_v1.0.0-unused.txt: -------------------------------------------------------------------------------- 1 | -- .mod -- 2 | module example.com/retract 3 | 4 | go 1.15 5 | 6 | -- .info -- 7 | {"Version":"v1.0.0-unused"} 8 | 9 | -- retract.go -- 10 | package retract 11 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_v1.0.0.txt: -------------------------------------------------------------------------------- 1 | Written by hand. 2 | Test case for module at root of domain. 3 | 4 | -- .mod -- 5 | module example.com 6 | -- .info -- 7 | {"Version": "v1.0.0"} 8 | -- x.go -- 9 | package x 10 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/rsc.io_testonly_v1.0.0.txt: -------------------------------------------------------------------------------- 1 | rsc.io/testonly v1.0.0 2 | written by hand 3 | 4 | -- .mod -- 5 | module rsc.io/testonly 6 | -- .info -- 7 | {"Version":"v1.0.0"} 8 | -- testonly.go -- 9 | package testonly 10 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/cgo_depends_on_syscall.txt: -------------------------------------------------------------------------------- 1 | [!cgo] skip 2 | [!race] skip 3 | 4 | go list -race -deps foo 5 | stdout syscall 6 | 7 | -- foo/foo.go -- 8 | package foo 9 | 10 | // #include 11 | import "C" 12 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/get_dash_t.txt: -------------------------------------------------------------------------------- 1 | # Tests issue 8181 2 | 3 | [!net] skip 4 | [!exec:git] skip 5 | 6 | go get -v -t github.com/rsc/go-get-issue-8181/a github.com/rsc/go-get-issue-8181/b 7 | go list ... 8 | stdout 'x/build/gerrit' -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/get_with_git_trace.txt: -------------------------------------------------------------------------------- 1 | env GO111MODULE=off 2 | 3 | env GIT_TRACE=1 4 | 5 | [!net] skip 6 | [!exec:git] skip 7 | 8 | # go get should be success when GIT_TRACE set 9 | go get golang.org/x/text 10 | -------------------------------------------------------------------------------- /src/net/testdata/resolv.conf: -------------------------------------------------------------------------------- 1 | # /etc/resolv.conf 2 | 3 | domain localdomain 4 | nameserver 8.8.8.8 5 | nameserver 2001:4860:4860::8888 6 | nameserver fe80::1%lo0 7 | options ndots:5 timeout:10 attempts:3 rotate 8 | options attempts 3 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug088.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2009 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug106.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2009 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug222.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2009 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug282.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2009 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug306.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2010 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | ignored 8 | -------------------------------------------------------------------------------- /doc/articles/wiki/test_edit.good: -------------------------------------------------------------------------------- 1 |

Editing Test

2 | 3 |
4 |
5 |
6 |
7 | -------------------------------------------------------------------------------- /misc/cgo/test/testdata/gcc68255/c.h: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | extern void (*v)(void); 6 | -------------------------------------------------------------------------------- /src/cmd/api/testdata/src/pkg/p2/golden.txt: -------------------------------------------------------------------------------- 1 | pkg p2, func F() string 2 | pkg p2, func G() Twoer 3 | pkg p2, func NewError(string) error 4 | pkg p2, type Twoer interface { PackageTwoMeth } 5 | pkg p2, type Twoer interface, PackageTwoMeth() 6 | -------------------------------------------------------------------------------- /src/cmd/compile/internal/ssa/testdata/i22600.gdb-dbg-race.nexts: -------------------------------------------------------------------------------- 1 | src/cmd/compile/internal/ssa/testdata/i22600.go 2 | 8: func test() { 3 | 9: pwd, err := os.Getwd() 4 | 10: if err != nil { 5 | 14: fmt.Println(pwd) 6 | 15: } 7 | 20: } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_retract_rationale_v1.0.0-unprintable.txt: -------------------------------------------------------------------------------- 1 | -- .mod -- 2 | module example.com/retract/rationale 3 | 4 | go 1.14 5 | -- .info -- 6 | {"Version":"v1.0.0-unprintable"} 7 | -- empty.go -- 8 | package empty 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/rsc.io_badmod_v1.0.0.txt: -------------------------------------------------------------------------------- 1 | rsc.io/badmod v1.0.0 2 | written by hand 3 | 4 | -- .mod -- 5 | module rsc.io/badmod 6 | hello world 7 | -- .info -- 8 | {"Version":"v1.0.0"} 9 | -- x.go -- 10 | package x 11 | 12 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/get_dot_slash_download.txt: -------------------------------------------------------------------------------- 1 | [!net] skip 2 | [!exec:git] skip 3 | 4 | # Tests Issues #9797 and #19769 5 | 6 | mkdir $WORK/tmp/src/rsc.io 7 | env GOPATH=$WORK/tmp 8 | cd $WORK/tmp/src/rsc.io 9 | go get ./pprof_mac_fix -------------------------------------------------------------------------------- /src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker112.go: -------------------------------------------------------------------------------- 1 | // +build go1.12 2 | 3 | package unitchecker 4 | 5 | import "go/importer" 6 | 7 | func init() { 8 | importerForCompiler = importer.ForCompiler 9 | } 10 | -------------------------------------------------------------------------------- /test/fixedbugs/bug160.go: -------------------------------------------------------------------------------- 1 | // rundir 2 | 3 | // Copyright 2009 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug392.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2011 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug396.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2011 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug404.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2012 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug407.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2011 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug448.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2012 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue13777.go: -------------------------------------------------------------------------------- 1 | // rundir 2 | 3 | // Copyright 2015 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue14164.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2016 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15071.go: -------------------------------------------------------------------------------- 1 | // rundir 2 | 3 | // Copyright 2019 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15609.dir/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | var called bool 4 | 5 | func target() { 6 | called = true 7 | } 8 | 9 | func main() { 10 | jump() 11 | if !called { 12 | panic("target not called") 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /test/fixedbugs/issue18911.go: -------------------------------------------------------------------------------- 1 | // rundir 2 | 3 | // Copyright 2018 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignore 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue22941.go: -------------------------------------------------------------------------------- 1 | // rundir 2 | 3 | // Copyright 2017 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue24693.go: -------------------------------------------------------------------------------- 1 | // rundir 2 | 3 | // Copyright 2018 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue31636.go: -------------------------------------------------------------------------------- 1 | // rundir 2 | 3 | // Copyright 2019 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue31959.go: -------------------------------------------------------------------------------- 1 | // rundir 2 | 3 | // Copyright 2019 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue32595.go: -------------------------------------------------------------------------------- 1 | // rundir 2 | 3 | // Copyright 2019 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/interface/embed3.go: -------------------------------------------------------------------------------- 1 | // rundir 2 | 3 | // Copyright 2019 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /misc/cgo/test/testdata/issue8828/issue8828.c: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | void foo() 6 | { 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_retract_missingmod_v1.9.0.txt: -------------------------------------------------------------------------------- 1 | The go.mod file at this version will be loaded to check for retractions 2 | of earlier versions. However, the .mod file is not available. 3 | -- .info -- 4 | {"Version":"v1.9.0"} 5 | -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/conversions.gox: -------------------------------------------------------------------------------- 1 | v2; 2 | package conversions; 3 | prefix go; 4 | package conversions go.conversions go.conversions; 5 | const Bits > = convert(, "bits"); 6 | type ; 7 | -------------------------------------------------------------------------------- /src/internal/reflectlite/asm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Trigger build without complete flag. -------------------------------------------------------------------------------- /src/syscall/export_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package syscall 6 | 7 | var Itoa = itoa 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug083.go: -------------------------------------------------------------------------------- 1 | // errorcheckdir 2 | 3 | // Copyright 2009 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug106.dir/bug0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package bug0 6 | 7 | const A = -1 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug133.go: -------------------------------------------------------------------------------- 1 | // errorcheckdir 2 | 3 | // Copyright 2009 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug504.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | type MyInt = int 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15548.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2016 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15920.dir/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package b 6 | 7 | import _ "./a" 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15920.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2016 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue19467.go: -------------------------------------------------------------------------------- 1 | // rundir -l=4 2 | 3 | // Copyright 2017 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue19699.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2017 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue20682.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2017 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue22877.go: -------------------------------------------------------------------------------- 1 | // builddir 2 | 3 | // Copyright 2017 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue22941.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package q 6 | 7 | type P int 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue22962.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2017 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue23179.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2017 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue23311.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2018 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue25984.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2018 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue26341.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2018 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue27836.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2018 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue29612.go: -------------------------------------------------------------------------------- 1 | // runindir 2 | 3 | // Copyright 2019 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue30659.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2019 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue30907.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2019 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue31252.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2019 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue4510.dir/f2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package p 6 | 7 | func fmt() {} 8 | -------------------------------------------------------------------------------- /doc/gopher/README: -------------------------------------------------------------------------------- 1 | The Go gopher was designed by Renee French. (http://reneefrench.blogspot.com/) 2 | The design is licensed under the Creative Commons 3.0 Attributions license. 3 | Read this article for more details: https://blog.golang.org/gopher 4 | -------------------------------------------------------------------------------- /misc/cgo/test/issue8331.h: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | typedef struct { 6 | int i; 7 | } issue8331; 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_downgrade_v2.0.0.txt: -------------------------------------------------------------------------------- 1 | example.com/downgrade v2.0.0 2 | written by hand 3 | 4 | -- .mod -- 5 | module example.com/downgrade 6 | 7 | require rsc.io/quote v1.5.2 8 | -- .info -- 9 | {"Version":"v2.0.0"} 10 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_missingpkg_v1.0.1-beta.txt: -------------------------------------------------------------------------------- 1 | The deprecated package is deleted in this version. 2 | 3 | -- .mod -- 4 | module example.com/missingpkg 5 | -- .info -- 6 | {"Version":"v1.0.1-beta"} 7 | -- lib.go -- 8 | package lib 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/prevent_sys_unix_import.txt: -------------------------------------------------------------------------------- 1 | # Policy decision: we shouldn't vendor golang.org/x/sys/unix in std 2 | # See https://golang.org/issue/32102 3 | 4 | env GO111MODULE=on 5 | go list std 6 | ! stdout vendor/golang.org/x/sys/unix 7 | -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/emptydecl.golden: -------------------------------------------------------------------------------- 1 | //gofmt -s 2 | 3 | // Test case for issue 7631. 4 | 5 | package main 6 | 7 | // Keep this declaration 8 | var () 9 | 10 | const ( 11 | // Keep this declaration 12 | ) 13 | 14 | func main() {} 15 | -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/complexnums.gox: -------------------------------------------------------------------------------- 1 | v1; 2 | package complexnums; 3 | pkgpath complexnums; 4 | priority 1; 5 | const NN = -0.1E1-0.1E1i ; 6 | const NP = -0.1E1+0.1E1i ; 7 | const PN = 0.1E1-0.1E1i ; 8 | const PP = 0.1E1+0.1E1i ; 9 | -------------------------------------------------------------------------------- /src/internal/cpu/cpu_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | const GOARCH = "386" 8 | -------------------------------------------------------------------------------- /src/internal/cpu/cpu_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | const GOARCH = "amd64" 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug222.dir/chanbug2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file 4 | 5 | package Bar 6 | import _ "chanbug" 7 | -------------------------------------------------------------------------------- /test/fixedbugs/bug282.dir/p2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package p2 6 | 7 | import _ "./p1" 8 | 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug306.dir/p2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package p2 6 | 7 | import _ "./p1" 8 | 9 | -------------------------------------------------------------------------------- /test/fixedbugs/issue10700.go: -------------------------------------------------------------------------------- 1 | // errorcheckdir 2 | 3 | // Copyright 2015 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15514.go: -------------------------------------------------------------------------------- 1 | // errorcheckdir 2 | 3 | // Copyright 2016 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue18419.go: -------------------------------------------------------------------------------- 1 | // errorcheckdir 2 | 3 | // Copyright 2015 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue24761.go: -------------------------------------------------------------------------------- 1 | // compiledir -c=4 2 | 3 | // Copyright 2018 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue25055.go: -------------------------------------------------------------------------------- 1 | // compiledir -c=2 2 | 3 | // Copyright 2018 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue31053.go: -------------------------------------------------------------------------------- 1 | // errorcheckdir 2 | 3 | // Copyright 2019 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue4510.go: -------------------------------------------------------------------------------- 1 | // errorcheckdir 2 | 3 | // Copyright 2012 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue4932.dir/foo.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package foo 6 | 7 | type Op struct{} 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue5260.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | const BOM = "\uFEFF" 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue5957.go: -------------------------------------------------------------------------------- 1 | // errorcheckdir 2 | 3 | // Copyright 2013 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue6513.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | type T struct{ int } 8 | -------------------------------------------------------------------------------- /test/oldescape_linkname.dir/linkname1.go: -------------------------------------------------------------------------------- 1 | package x 2 | 3 | func indexByte(xs []byte, b byte) int { // ERROR "indexByte xs does not escape" 4 | for i, x := range xs { 5 | if x == b { 6 | return i 7 | } 8 | } 9 | return -1 10 | } 11 | -------------------------------------------------------------------------------- /misc/cgo/testshared/testdata/gcdata/p/p.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package p 6 | 7 | type T [10]*int 8 | -------------------------------------------------------------------------------- /misc/cgo/testshared/testdata/issue39777/b/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package b 6 | 7 | func F() {} 8 | -------------------------------------------------------------------------------- /src/cmd/compile/internal/test/README: -------------------------------------------------------------------------------- 1 | This directory holds small tests and benchmarks of code 2 | generated by the compiler. This code is not for importing, 3 | and the tests are intended to verify that specific optimzations 4 | are applied and correct. 5 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/rsc.io_breaker_v1.0.0.txt: -------------------------------------------------------------------------------- 1 | rsc.io/breaker v1.0.0 2 | written by hand 3 | 4 | -- .mod -- 5 | module rsc.io/breaker 6 | -- .info -- 7 | {"Version":"v1.0.0"} 8 | -- breaker.go -- 9 | package breaker 10 | 11 | const X = 1 12 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/gccgo_mangle.txt: -------------------------------------------------------------------------------- 1 | # Issue 33871. 2 | 3 | cd m/a.0 4 | go build 5 | 6 | -- m/go.mod -- 7 | module m 8 | -- m/a.0/a.go -- 9 | package a 10 | 11 | type T int 12 | 13 | func (t T) M() int { 14 | return int(t) 15 | } 16 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/install_cgo_excluded.txt: -------------------------------------------------------------------------------- 1 | env CGO_ENABLED=0 2 | 3 | ! go install cgotest 4 | stderr 'build constraints exclude all Go files' 5 | 6 | -- cgotest/m.go -- 7 | package cgotest 8 | 9 | import "C" 10 | 11 | var _ C.int 12 | -------------------------------------------------------------------------------- /src/cmd/link/internal/ld/testdata/issue25459/main/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "cmd/link/internal/ld/testdata/issue25459/a" 4 | 5 | var Glob int 6 | 7 | func main() { 8 | a.Another() 9 | Glob += a.ConstIf() + a.CallConstIf() 10 | } 11 | -------------------------------------------------------------------------------- /src/debug/dwarf/export_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package dwarf 6 | 7 | var PathJoin = pathJoin 8 | -------------------------------------------------------------------------------- /src/go/types/testdata/blank.src: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package _ /* ERROR invalid package name */ 6 | -------------------------------------------------------------------------------- /src/internal/cpu/cpu_mips.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | const CacheLinePadSize = 32 8 | -------------------------------------------------------------------------------- /src/internal/cpu/cpu_wasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | const CacheLinePadSize = 64 8 | -------------------------------------------------------------------------------- /src/path/filepath/export_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package filepath 6 | 7 | var LstatP = &lstat 8 | -------------------------------------------------------------------------------- /src/runtime/os_linux_riscv64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package runtime 6 | 7 | func osArchInit() {} 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug106.dir/bug1.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package bug1 6 | 7 | import _ "./bug0" 8 | 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug377.dir/two.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file 4 | 5 | package two 6 | 7 | import _ "./one" 8 | 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug382.dir/pkg.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package pkg 6 | type T struct {} 7 | var E T 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug468.dir/p1.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package p1 6 | 7 | type S struct { X, Y int } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15514.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | type A struct{ _ int32 } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue16616.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | type V struct{ i int } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue18895.go: -------------------------------------------------------------------------------- 1 | // errorcheckdir -0 -m 2 | 3 | // Copyright 2017 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue19261.go: -------------------------------------------------------------------------------- 1 | // errorcheckdir -0 -m 2 | 3 | // Copyright 2017 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue25055.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | var A chan *interface{} 8 | -------------------------------------------------------------------------------- /doc/progs/eff_unused1.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "io" 6 | "log" 7 | "os" 8 | ) 9 | 10 | func main() { 11 | fd, err := os.Open("test.go") 12 | if err != nil { 13 | log.Fatal(err) 14 | } 15 | // TODO: use fd. 16 | } 17 | -------------------------------------------------------------------------------- /misc/chrome/gophertool/README.txt: -------------------------------------------------------------------------------- 1 | To install: 2 | 3 | 1) chrome://extensions/ 4 | 2) click "[+] Developer Mode" in top right 5 | 3) "Load unpacked extension..." 6 | 4) pick $GOROOT/misc/chrome/gophertool 7 | 8 | Done. It'll now auto-reload from source. 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/vendor_import_wrong.txt: -------------------------------------------------------------------------------- 1 | # Wrong import path 2 | ! go build vend/x/invalid 3 | stderr 'must be imported as foo' 4 | 5 | -- vend/x/invalid/invalid.go -- 6 | package invalid 7 | 8 | import "vend/x/invalid/vendor/foo" 9 | 10 | -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/emptydecl.input: -------------------------------------------------------------------------------- 1 | //gofmt -s 2 | 3 | // Test case for issue 7631. 4 | 5 | package main 6 | 7 | // Keep this declaration 8 | var () 9 | 10 | const ( 11 | // Keep this declaration 12 | ) 13 | 14 | type () 15 | 16 | func main() {} -------------------------------------------------------------------------------- /src/go/internal/srcimporter/testdata/issue23092/issue23092.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package issue23092 6 | -------------------------------------------------------------------------------- /src/go/internal/srcimporter/testdata/issue24392/issue24392.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package issue24392 6 | -------------------------------------------------------------------------------- /src/internal/cpu/cpu_mipsle.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | const CacheLinePadSize = 32 8 | -------------------------------------------------------------------------------- /src/internal/cpu/cpu_riscv64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | const CacheLinePadSize = 32 8 | -------------------------------------------------------------------------------- /src/math/bits/export_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package bits 6 | 7 | const DeBruijn64 = deBruijn64 8 | -------------------------------------------------------------------------------- /src/runtime/export_aix_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package runtime 6 | 7 | var Fcntl = syscall_fcntl1 8 | -------------------------------------------------------------------------------- /src/testing/export_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package testing 6 | 7 | var PrettyPrint = prettyPrint 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug063.go: -------------------------------------------------------------------------------- 1 | // compile 2 | 3 | // Copyright 2009 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package bug063 8 | const c = 0 ^ 0 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug133.dir/bug0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package bug0 6 | 7 | type T struct { i int } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue19507.go: -------------------------------------------------------------------------------- 1 | // +build arm 2 | // builddir 3 | 4 | // Copyright 2017 The Go Authors. All rights reserved. 5 | // Use of this source code is governed by a BSD-style 6 | // license that can be found in the LICENSE file. 7 | 8 | package ignored 9 | -------------------------------------------------------------------------------- /test/fixedbugs/issue8060.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | var A = []*[2][1]float64{} 8 | -------------------------------------------------------------------------------- /doc/articles/wiki/edit.html: -------------------------------------------------------------------------------- 1 |

Editing {{.Title}}

2 | 3 |
4 |
5 |
6 |
7 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/example.com_join_v1.1.0.txt: -------------------------------------------------------------------------------- 1 | Written by hand. 2 | Test case for package moved into a parent module. 3 | 4 | -- .mod -- 5 | module example.com/join 6 | -- .info -- 7 | {"Version": "v1.1.0"} 8 | -- subpkg/x.go -- 9 | package subpkg 10 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/mod/gopkg.in_dummy.v2-unstable_v2.0.0.txt: -------------------------------------------------------------------------------- 1 | gopkg.in/dummy.v2-unstable v2.0.0 2 | written by hand 3 | 4 | -- .mod -- 5 | module gopkg.in/dummy.v2-unstable 6 | -- .info -- 7 | {"Version":"v2.0.0"} 8 | -- dummy.go -- 9 | package dummy 10 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/cover_mod_empty.txt: -------------------------------------------------------------------------------- 1 | go tool cover -func=cover.out 2 | stdout total.*statements.*0.0% 3 | 4 | go mod init golang.org/issue/33855 5 | 6 | go tool cover -func=cover.out 7 | stdout total.*statements.*0.0% 8 | 9 | -- cover.out -- 10 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/mod_string_alias.txt: -------------------------------------------------------------------------------- 1 | [short] skip 2 | 3 | env GO111MODULE=on 4 | 5 | go mod init golang.org/issue/27584 6 | 7 | go build . 8 | 9 | -- main.go -- 10 | package main 11 | 12 | type string = []int 13 | 14 | func main() {} 15 | -------------------------------------------------------------------------------- /test/fixedbugs/bug050.go: -------------------------------------------------------------------------------- 1 | // errorcheck 2 | 3 | // Copyright 2009 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | func main() { // ERROR "package" 8 | } 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug160.dir/x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package x 6 | 7 | const Zero = 0.0 8 | const Ten = 10.0 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug488.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | var p2 = Printf // ERROR "undefined" 8 | --------------------------------------------------------------------------------