├── api └── next.txt ├── misc ├── nacl │ └── testdata │ │ ├── empty │ │ ├── bin │ │ └── placeholder │ │ ├── hosts │ │ └── group ├── cgo │ ├── stdio │ │ └── hello.out │ ├── testshared │ │ └── src │ │ │ ├── implicit │ │ │ └── implicit.go │ │ │ ├── execgo │ │ │ └── exe.go │ │ │ ├── exe3 │ │ │ └── exe3.go │ │ │ ├── exe2 │ │ │ └── exe2.go │ │ │ ├── explicit │ │ │ └── explicit.go │ │ │ └── implicitcmd │ │ │ └── implicitcmd.go │ ├── errors │ │ └── src │ │ │ └── issue18889.go │ ├── test │ │ ├── issue8828 │ │ │ ├── trivial.go │ │ │ └── issue8828.c │ │ ├── issue9026.go │ │ ├── issue8756 │ │ │ └── issue8756.go │ │ ├── issue4339.h │ │ └── gcc68255 │ │ │ └── c.h │ └── fortran │ │ └── helloworld │ │ └── helloworld.f90 ├── chrome │ └── gophertool │ │ └── gopher.png ├── benchcmp └── editors ├── src ├── go │ ├── build │ │ └── testdata │ │ │ ├── empty │ │ │ └── dummy │ │ │ ├── doc │ │ │ ├── e.go │ │ │ ├── c_test.go │ │ │ ├── b_test.go │ │ │ ├── f.go │ │ │ ├── a_test.go │ │ │ └── d_test.go │ │ │ ├── multi │ │ │ ├── file.go │ │ │ └── file_appengine.go │ │ │ └── other │ │ │ ├── file │ │ │ └── file.go │ │ │ └── main.go │ ├── internal │ │ ├── gccgoimporter │ │ │ └── testdata │ │ │ │ ├── pointer.go │ │ │ │ ├── time.gox │ │ │ │ ├── conversions.go │ │ │ │ ├── imports.go │ │ │ │ ├── unicode.gox │ │ │ │ ├── escapeinfo.gox │ │ │ │ ├── libimportsar.a │ │ │ │ ├── pointer.gox │ │ │ │ ├── complexnums.go │ │ │ │ ├── issue27856.go │ │ │ │ └── conversions.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 │ ├── doc │ │ └── testdata │ │ │ ├── bugpara.go │ │ │ ├── issue17788.0.golden │ │ │ ├── issue17788.1.golden │ │ │ ├── issue17788.2.golden │ │ │ ├── predeclared.0.golden │ │ │ └── predeclared.2.golden │ └── printer │ │ └── testdata │ │ ├── empty.golden │ │ └── empty.input ├── 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 │ │ ├── go-no-datadesc-sig.zip │ │ ├── test-trailing-junk.zip │ │ └── go-with-datadesc-sig.zip ├── cmd │ ├── go │ │ ├── testdata │ │ │ ├── src │ │ │ │ ├── exclude │ │ │ │ │ ├── empty │ │ │ │ │ │ └── x.txt │ │ │ │ │ ├── ignore │ │ │ │ │ │ └── _x.go │ │ │ │ │ ├── x.go │ │ │ │ │ └── x_linux.go │ │ │ │ ├── badc │ │ │ │ │ ├── x.c │ │ │ │ │ └── x.go │ │ │ │ ├── badpkg │ │ │ │ │ └── x.go │ │ │ │ ├── dupload │ │ │ │ │ ├── p │ │ │ │ │ │ └── p.go │ │ │ │ │ ├── vendor │ │ │ │ │ │ └── p │ │ │ │ │ │ │ └── p.go │ │ │ │ │ ├── p2 │ │ │ │ │ │ └── p2.go │ │ │ │ │ └── dupload.go │ │ │ │ ├── cgocover3 │ │ │ │ │ ├── p_test.go │ │ │ │ │ ├── x_test.go │ │ │ │ │ └── p.go │ │ │ │ ├── cgocover4 │ │ │ │ │ ├── notcgo.go │ │ │ │ │ ├── x_test.go │ │ │ │ │ └── p.go │ │ │ │ ├── empty │ │ │ │ │ ├── pkg │ │ │ │ │ │ └── pkg.go │ │ │ │ │ ├── pkgtest │ │ │ │ │ │ ├── pkg.go │ │ │ │ │ │ └── test_test.go │ │ │ │ │ ├── pkgtestxtest │ │ │ │ │ │ ├── pkg.go │ │ │ │ │ │ ├── test_test.go │ │ │ │ │ │ └── xtest_test.go │ │ │ │ │ ├── pkgxtest │ │ │ │ │ │ ├── pkg.go │ │ │ │ │ │ └── xtest_test.go │ │ │ │ │ ├── test │ │ │ │ │ │ └── test_test.go │ │ │ │ │ ├── testxtest │ │ │ │ │ │ ├── test_test.go │ │ │ │ │ │ └── xtest_test.go │ │ │ │ │ └── xtest │ │ │ │ │ │ └── xtest_test.go │ │ │ │ ├── syntaxerror │ │ │ │ │ ├── x.go │ │ │ │ │ └── x_test.go │ │ │ │ ├── testcycle │ │ │ │ │ ├── q1 │ │ │ │ │ │ ├── q1.go │ │ │ │ │ │ └── q1_test.go │ │ │ │ │ ├── p3 │ │ │ │ │ │ ├── p3.go │ │ │ │ │ │ └── p3_test.go │ │ │ │ │ ├── p1 │ │ │ │ │ │ ├── p1_test.go │ │ │ │ │ │ └── p1.go │ │ │ │ │ └── p2 │ │ │ │ │ │ └── p2.go │ │ │ │ ├── testdep │ │ │ │ │ ├── p1 │ │ │ │ │ │ ├── p1.go │ │ │ │ │ │ └── p1_test.go │ │ │ │ │ ├── p2 │ │ │ │ │ │ └── p2.go │ │ │ │ │ └── p3 │ │ │ │ │ │ └── p3.go │ │ │ │ ├── vend │ │ │ │ │ ├── dir1 │ │ │ │ │ │ └── dir1.go │ │ │ │ │ ├── vendor │ │ │ │ │ │ ├── p │ │ │ │ │ │ │ └── p.go │ │ │ │ │ │ ├── q │ │ │ │ │ │ │ └── q.go │ │ │ │ │ │ ├── vend │ │ │ │ │ │ │ └── dir1 │ │ │ │ │ │ │ │ └── dir2 │ │ │ │ │ │ │ │ └── dir2.go │ │ │ │ │ │ └── strings │ │ │ │ │ │ │ └── msg.go │ │ │ │ │ ├── x │ │ │ │ │ │ ├── vendor │ │ │ │ │ │ │ ├── p │ │ │ │ │ │ │ │ ├── p.go │ │ │ │ │ │ │ │ └── p │ │ │ │ │ │ │ │ │ └── p.go │ │ │ │ │ │ │ └── r │ │ │ │ │ │ │ │ └── r.go │ │ │ │ │ │ ├── invalid │ │ │ │ │ │ │ └── invalid.go │ │ │ │ │ │ └── x.go │ │ │ │ │ ├── bad.go │ │ │ │ │ ├── good.go │ │ │ │ │ ├── subdir │ │ │ │ │ │ ├── bad.go │ │ │ │ │ │ └── good.go │ │ │ │ │ └── hello │ │ │ │ │ │ └── hello.go │ │ │ │ ├── canonical │ │ │ │ │ ├── a │ │ │ │ │ │ ├── vendor │ │ │ │ │ │ │ └── c │ │ │ │ │ │ │ │ └── c.go │ │ │ │ │ │ └── a.go │ │ │ │ │ ├── b │ │ │ │ │ │ └── b.go │ │ │ │ │ └── d │ │ │ │ │ │ └── d.go │ │ │ │ ├── cgoasm │ │ │ │ │ ├── p.s │ │ │ │ │ └── p.go │ │ │ │ ├── vetpkg │ │ │ │ │ ├── a_test.go │ │ │ │ │ ├── b.go │ │ │ │ │ └── c.go │ │ │ │ ├── importmain │ │ │ │ │ ├── test │ │ │ │ │ │ ├── test.go │ │ │ │ │ │ └── test_test.go │ │ │ │ │ └── ismain │ │ │ │ │ │ └── main.go │ │ │ │ ├── run │ │ │ │ │ ├── internal │ │ │ │ │ │ └── internal.go │ │ │ │ │ ├── subdir │ │ │ │ │ │ └── internal │ │ │ │ │ │ │ └── private │ │ │ │ │ │ │ └── private.go │ │ │ │ │ ├── good.go │ │ │ │ │ └── bad.go │ │ │ │ ├── coverdep │ │ │ │ │ ├── p1 │ │ │ │ │ │ └── p1.go │ │ │ │ │ ├── p.go │ │ │ │ │ └── p_test.go │ │ │ │ ├── coverdot1 │ │ │ │ │ └── p.go │ │ │ │ ├── my.pkg │ │ │ │ │ ├── pkg.go │ │ │ │ │ └── main │ │ │ │ │ │ └── main.go │ │ │ │ ├── coverbad │ │ │ │ │ ├── p.go │ │ │ │ │ ├── p1.go │ │ │ │ │ └── p_test.go │ │ │ │ ├── not_main │ │ │ │ │ └── not_main.go │ │ │ │ ├── coverdep2 │ │ │ │ │ ├── p1 │ │ │ │ │ │ ├── p.go │ │ │ │ │ │ └── p_test.go │ │ │ │ │ └── p2 │ │ │ │ │ │ └── p2.go │ │ │ │ ├── cgotest │ │ │ │ │ └── m.go │ │ │ │ ├── main_test │ │ │ │ │ ├── m.go │ │ │ │ │ └── m_test.go │ │ │ │ ├── xtestonly │ │ │ │ │ └── f.go │ │ │ │ ├── coverasm │ │ │ │ │ ├── p.go │ │ │ │ │ ├── p.s │ │ │ │ │ └── p_test.go │ │ │ │ ├── hello │ │ │ │ │ └── hello.go │ │ │ │ ├── sleepybad │ │ │ │ │ └── p.go │ │ │ │ ├── vetfail │ │ │ │ │ ├── p2 │ │ │ │ │ │ ├── p2.go │ │ │ │ │ │ └── p2_test.go │ │ │ │ │ └── p1 │ │ │ │ │ │ └── p1.go │ │ │ │ ├── coverdot2 │ │ │ │ │ ├── p.go │ │ │ │ │ └── p_test.go │ │ │ │ ├── go-cmd-test │ │ │ │ │ └── helloworld.go │ │ │ │ ├── bench │ │ │ │ │ └── x_test.go │ │ │ │ ├── cgocover │ │ │ │ │ ├── p_test.go │ │ │ │ │ └── p.go │ │ │ │ ├── notest │ │ │ │ │ └── hello.go │ │ │ │ ├── gencycle │ │ │ │ │ └── gencycle.go │ │ │ │ ├── testnorun │ │ │ │ │ └── p.go │ │ │ │ ├── skipper │ │ │ │ │ └── skip_test.go │ │ │ │ ├── cgocover2 │ │ │ │ │ ├── x_test.go │ │ │ │ │ └── p.go │ │ │ │ ├── benchfatal │ │ │ │ │ └── x_test.go │ │ │ │ ├── sleepy1 │ │ │ │ │ └── p_test.go │ │ │ │ ├── sleepy2 │ │ │ │ │ └── p_test.go │ │ │ │ └── testlist │ │ │ │ │ └── test_test.go │ │ │ ├── badmod │ │ │ │ ├── go.mod │ │ │ │ └── x.go │ │ │ ├── rundir │ │ │ │ ├── x.go │ │ │ │ └── sub │ │ │ │ │ └── sub.go │ │ │ ├── testonly │ │ │ │ └── p_test.go │ │ │ ├── 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 │ │ │ ├── shadow │ │ │ │ ├── root1 │ │ │ │ │ └── src │ │ │ │ │ │ ├── foo │ │ │ │ │ │ └── foo.go │ │ │ │ │ │ └── math │ │ │ │ │ │ └── math.go │ │ │ │ └── root2 │ │ │ │ │ └── src │ │ │ │ │ └── foo │ │ │ │ │ └── foo.go │ │ │ ├── testcover │ │ │ │ ├── pkg2 │ │ │ │ │ ├── a_test.go │ │ │ │ │ └── a.go │ │ │ │ ├── pkg1 │ │ │ │ │ └── a.go │ │ │ │ └── pkg3 │ │ │ │ │ ├── a.go │ │ │ │ │ └── a_test.go │ │ │ ├── testvendor2 │ │ │ │ ├── vendor │ │ │ │ │ └── x │ │ │ │ │ │ └── x.go │ │ │ │ └── src │ │ │ │ │ └── p │ │ │ │ │ └── p.go │ │ │ ├── testvendor │ │ │ │ └── src │ │ │ │ │ ├── q │ │ │ │ │ ├── vendor │ │ │ │ │ │ └── x │ │ │ │ │ │ │ └── x.go │ │ │ │ │ ├── y │ │ │ │ │ │ └── y.go │ │ │ │ │ └── z │ │ │ │ │ │ └── z.go │ │ │ │ │ └── p │ │ │ │ │ └── p.go │ │ │ ├── importcom │ │ │ │ ├── bad.go │ │ │ │ ├── src │ │ │ │ │ ├── bad │ │ │ │ │ │ └── bad.go │ │ │ │ │ ├── conflict │ │ │ │ │ │ ├── a.go │ │ │ │ │ │ └── b.go │ │ │ │ │ ├── works │ │ │ │ │ │ └── x │ │ │ │ │ │ │ ├── x.go │ │ │ │ │ │ │ └── x1.go │ │ │ │ │ └── wrongplace │ │ │ │ │ │ └── x.go │ │ │ │ ├── conflict.go │ │ │ │ ├── works.go │ │ │ │ └── wrongplace.go │ │ │ ├── testinternal2 │ │ │ │ ├── x │ │ │ │ │ └── y │ │ │ │ │ │ └── z │ │ │ │ │ │ └── internal │ │ │ │ │ │ └── w │ │ │ │ │ │ └── w.go │ │ │ │ └── p.go │ │ │ ├── testinternal4 │ │ │ │ └── src │ │ │ │ │ ├── q │ │ │ │ │ ├── internal │ │ │ │ │ │ └── x │ │ │ │ │ │ │ └── x.go │ │ │ │ │ └── j │ │ │ │ │ │ └── j.go │ │ │ │ │ └── p │ │ │ │ │ └── p.go │ │ │ ├── testimport │ │ │ │ ├── p.go │ │ │ │ ├── p1 │ │ │ │ │ └── p1.go │ │ │ │ ├── p2 │ │ │ │ │ └── p2.go │ │ │ │ └── p_test.go │ │ │ ├── testinternal │ │ │ │ └── p.go │ │ │ ├── testinternal3 │ │ │ │ └── t.go │ │ │ ├── importcycle │ │ │ │ └── src │ │ │ │ │ └── selfimport │ │ │ │ │ └── selfimport.go │ │ │ ├── local │ │ │ │ ├── hard.go │ │ │ │ ├── easy.go │ │ │ │ ├── sub │ │ │ │ │ ├── sub │ │ │ │ │ │ └── subsub.go │ │ │ │ │ └── sub.go │ │ │ │ └── easysub │ │ │ │ │ ├── easysub.go │ │ │ │ │ └── main.go │ │ │ ├── standalone_test.go │ │ │ ├── standalone_benchmark_test.go │ │ │ ├── script │ │ │ │ ├── mod_case_cgo.txt │ │ │ │ ├── run_hello.txt │ │ │ │ ├── test_compile_binary.txt │ │ │ │ ├── list_tags.txt │ │ │ │ ├── mod_help.txt │ │ │ │ ├── get_with_git_trace.txt │ │ │ │ ├── mod_list_upgrade.txt │ │ │ │ ├── mod_vendor_nodeps.txt │ │ │ │ ├── mod_import_mod.txt │ │ │ │ ├── mod_convert_dep.txt │ │ │ │ ├── mod_convert_glide.txt │ │ │ │ ├── fileline.txt │ │ │ │ ├── mod_convert_glockfile.txt │ │ │ │ ├── mod_convert_tsv.txt │ │ │ │ ├── mod_convert_vendor_yml.txt │ │ │ │ └── mod_convert_vendor_conf.txt │ │ │ ├── standalone_sub_test.go │ │ │ ├── testonly2 │ │ │ │ └── t.go │ │ │ ├── mod │ │ │ │ ├── example.com_join_v1.0.0.txt │ │ │ │ ├── example.com_v1.0.0.txt │ │ │ │ ├── rsc.io_testonly_v1.0.0.txt │ │ │ │ └── rsc.io_badmod_v1.0.0.txt │ │ │ ├── standalone_fail_sub_test.go │ │ │ ├── timeoutbench_test.go │ │ │ └── norunexample │ │ │ │ └── test_test.go │ │ └── internal │ │ │ ├── modfile │ │ │ └── testdata │ │ │ │ ├── empty.in │ │ │ │ ├── empty.golden │ │ │ │ ├── module.in │ │ │ │ ├── module.golden │ │ │ │ ├── rule1.golden │ │ │ │ ├── replace.golden │ │ │ │ ├── replace.in │ │ │ │ ├── gopkg.in.golden │ │ │ │ ├── comment.in │ │ │ │ └── comment.golden │ │ │ └── imports │ │ │ └── testdata │ │ │ └── import1 │ │ │ ├── x.go │ │ │ ├── x_windows.go │ │ │ ├── x_darwin.go │ │ │ └── x1.go │ ├── compile │ │ └── internal │ │ │ ├── test │ │ │ └── test.go │ │ │ └── ssa │ │ │ └── testdata │ │ │ ├── i22600.dlv-dbg-race.nexts │ │ │ ├── i22558.gdb-dbg.nexts │ │ │ └── i22600.gdb-dbg-race.nexts │ ├── vet │ │ ├── testdata │ │ │ └── testingpkg │ │ │ │ └── tests.go │ │ └── all │ │ │ └── whitelist │ │ │ ├── plan9_386.txt │ │ │ ├── android_amd64.txt │ │ │ ├── darwin_amd64.txt │ │ │ ├── darwin_arm64.txt │ │ │ ├── netbsd_amd64.txt │ │ │ ├── darwin_386.txt │ │ │ ├── darwin_arm.txt │ │ │ ├── openbsd_amd64.txt │ │ │ └── netbsd.txt │ ├── api │ │ └── testdata │ │ │ └── src │ │ │ ├── issue21181 │ │ │ ├── dep │ │ │ │ ├── p_amd64.go │ │ │ │ └── p.go │ │ │ ├── indirect │ │ │ │ └── p.go │ │ │ └── p │ │ │ │ ├── p_amd64.go │ │ │ │ ├── p.go │ │ │ │ └── p_generic.go │ │ │ └── pkg │ │ │ ├── p3 │ │ │ ├── p3.go │ │ │ └── golden.txt │ │ │ └── p2 │ │ │ ├── p2.go │ │ │ └── golden.txt │ ├── 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 │ ├── doc │ │ └── testdata │ │ │ └── nested │ │ │ ├── nested │ │ │ └── real.go │ │ │ └── ignore.go │ ├── vendor │ │ ├── github.com │ │ │ ├── google │ │ │ │ └── pprof │ │ │ │ │ ├── internal │ │ │ │ │ ├── driver │ │ │ │ │ │ └── testdata │ │ │ │ │ │ │ ├── pprof.cpu.comments │ │ │ │ │ │ │ ├── pprof.heap.comments │ │ │ │ │ │ │ ├── cppbench.cpu │ │ │ │ │ │ │ ├── go.crc32.cpu │ │ │ │ │ │ │ ├── pprof.heap.flat.files.seconds.text │ │ │ │ │ │ │ ├── go.nomappings.crash │ │ │ │ │ │ │ └── pprof.cpu.tags.focus.ignore │ │ │ │ │ ├── binutils │ │ │ │ │ │ └── testdata │ │ │ │ │ │ │ ├── exe_mac_64 │ │ │ │ │ │ │ ├── lib_mac_64 │ │ │ │ │ │ │ ├── exe_linux_64 │ │ │ │ │ │ │ ├── malformed_elf │ │ │ │ │ │ │ └── malformed_macho │ │ │ │ │ └── report │ │ │ │ │ │ └── testdata │ │ │ │ │ │ ├── sample.bin │ │ │ │ │ │ └── sample.cpu │ │ │ │ │ └── profile │ │ │ │ │ └── testdata │ │ │ │ │ ├── cppbench.cpu │ │ │ │ │ ├── go.crc32.cpu │ │ │ │ │ └── gobench.cpu │ │ │ └── ianlancetaylor │ │ │ │ └── demangle │ │ │ │ └── README.md │ │ └── golang.org │ │ │ └── x │ │ │ └── arch │ │ │ ├── arm │ │ │ └── armasm │ │ │ │ └── Makefile │ │ │ └── x86 │ │ │ └── x86asm │ │ │ └── Makefile │ ├── internal │ │ ├── buildid │ │ │ └── testdata │ │ │ │ ├── a.pe │ │ │ │ ├── p.a │ │ │ │ ├── a.elf │ │ │ │ └── a.macho │ │ ├── goobj │ │ │ └── testdata │ │ │ │ └── mycgo │ │ │ │ └── go.go │ │ ├── xcoff │ │ │ └── testdata │ │ │ │ ├── hello.c │ │ │ │ ├── gcc-ppc32-aix-dwarf2-exec │ │ │ │ └── gcc-ppc64-aix-dwarf2-exec │ │ └── test2json │ │ │ └── testdata │ │ │ └── benchfail.test │ ├── link │ │ └── internal │ │ │ └── ld │ │ │ └── testdata │ │ │ ├── issue10978 │ │ │ └── main.s │ │ │ └── issue25459 │ │ │ └── src │ │ │ └── main │ │ │ └── main.go │ ├── cover │ │ └── testdata │ │ │ ├── html │ │ │ └── html_test.go │ │ │ └── profile.cov │ └── objdump │ │ └── testdata │ │ └── fmthello.go ├── net │ ├── http │ │ └── testdata │ │ │ ├── file │ │ │ ├── style.css │ │ │ └── index.html │ └── testdata │ │ ├── singleline-hosts │ │ ├── empty-resolv.conf │ │ ├── large-ndots-resolv.conf │ │ ├── invalid-ndots-resolv.conf │ │ ├── negative-ndots-resolv.conf │ │ ├── case-hosts │ │ ├── domain-resolv.conf │ │ ├── search-resolv.conf │ │ ├── openbsd-resolv.conf │ │ └── resolv.conf ├── 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 │ └── gzip │ │ └── testdata │ │ └── issue6550.gz ├── 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 ├── internal │ ├── traceparser │ │ └── testdata │ │ │ ├── 63cd688ddff425bbbc220fbb7bd4fa11616a8b64-1.bad │ │ │ ├── 495712b6e35ad7566869c887aa823fcbf69c0b80-1.weird │ │ │ ├── 06dfecf6e5dfb78e954e7892120b56bfca50af65-6.bad │ │ │ ├── 0e6dd1787a6339366dac733a2f957a05d7aa3ac7-3.bad │ │ │ ├── 2ccf452e473ded814ea880c602488637fc27e549.good │ │ │ ├── 4557f81f6aae617eeec8dd920997ea27b3dda12b.weird │ │ │ ├── 6aa1a69b265c3092972a2a81e77fbcaa87061735-4.bad │ │ │ ├── 7b82e808a6a3471352a4197d44fedbe3f5fb6f77-1.bad │ │ │ ├── 16970d24ef6753d71953e20d10638705bdccc3ba-2.weird │ │ │ ├── 26492441b33e1bb93669f79cf3584755cc3ef7e8-2.weird │ │ │ ├── 34f92cd2ae08f558c494b2ef79e80b574c9f096c-8.weird │ │ │ ├── 63df44bfc9d27851fb054ce03002e7e25f307e2f-5.weird │ │ │ ├── 94347dc6ca9c22daec04c5f2530b16ea60bb0ba2-7.weird │ │ │ ├── 9fa93c88557e64b0714b8849aacf713d17ff928e-2.weird │ │ │ ├── abf7185aaf1cb69fb5fae50ba8546a7cdefade57-2.weird │ │ │ ├── d28fcef078c7dc722867d781b1fd7f37ca965372-7.weird │ │ │ ├── d70f178a3813df03f2aed0d47f6d9bc844b8cb57-4.weird │ │ │ └── e68c3126700dda2c2ac3b8743e9f319cb313042a-1.weird │ └── 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 ├── text │ └── template │ │ └── testdata │ │ ├── file1.tmpl │ │ ├── tmpl1.tmpl │ │ ├── tmpl2.tmpl │ │ └── file2.tmpl ├── image │ ├── testdata │ │ ├── video-001.gif │ │ ├── video-001.jpeg │ │ ├── video-001.png │ │ ├── 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 │ │ ├── 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_darwin_amd64.syso │ │ ├── race_freebsd_amd64.syso │ │ ├── race_linux_ppc64le.syso │ │ ├── race_netbsd_amd64.syso │ │ └── race_windows_amd64.syso │ ├── zcallback_windows.go │ └── Makefile ├── debug │ ├── dwarf │ │ └── testdata │ │ │ ├── cycle.elf │ │ │ ├── line2.c │ │ │ ├── ranges.elf │ │ │ ├── split.c │ │ │ ├── split.elf │ │ │ ├── typedef.elf │ │ │ ├── line-gcc.elf │ │ │ ├── typedef.elf4 │ │ │ ├── typedef.macho │ │ │ ├── line-clang.elf │ │ │ ├── line-gcc-win.bin │ │ │ ├── line1.c │ │ │ ├── line1.h │ │ │ └── cycle.c │ ├── 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 │ │ │ └── gcc-386-mingw-no-symbols-exec │ ├── plan9obj │ │ └── testdata │ │ │ ├── 386-plan9-exec │ │ │ ├── amd64-plan9-exec │ │ │ └── hello.c │ ├── macho │ │ └── testdata │ │ │ ├── clang-386-darwin.obj │ │ │ ├── gcc-386-darwin-exec │ │ │ ├── gcc-amd64-darwin-exec │ │ │ ├── clang-amd64-darwin.obj │ │ │ ├── hello.c │ │ │ ├── gcc-amd64-darwin-exec-debug │ │ │ ├── fat-gcc-386-amd64-darwin-exec │ │ │ ├── clang-386-darwin-exec-with-rpath │ │ │ └── clang-amd64-darwin-exec-with-rpath │ └── gosym │ │ └── pclinetest.h ├── crypto │ ├── ecdsa │ │ └── testdata │ │ │ └── SigVer.rsp.bz2 │ └── rsa │ │ └── testdata │ │ └── pss-vect.txt.bz2 ├── encoding │ └── json │ │ └── testdata │ │ └── code.json.gz ├── regexp │ └── testdata │ │ └── re2-exhaustive.txt.bz2 ├── path │ └── filepath │ │ └── symlink_unix.go └── math │ ├── asin_amd64p32.s │ ├── atan_amd64p32.s │ ├── dim_amd64p32.s │ ├── exp2_amd64p32.s │ ├── exp_amd64p32.s │ ├── log_amd64p32.s │ ├── mod_amd64p32.s │ ├── modf_amd64p32.s │ ├── sin_amd64p32.s │ ├── sqrt_amd64p32.s │ ├── tan_amd64p32.s │ ├── atan2_amd64p32.s │ ├── expm1_amd64p32.s │ ├── floor_amd64p32.s │ ├── frexp_amd64p32.s │ ├── hypot_amd64p32.s │ ├── ldexp_amd64p32.s │ ├── log10_amd64p32.s │ ├── log1p_amd64p32.s │ └── remainder_amd64p32.s ├── test ├── fixedbugs │ ├── bug328.out │ ├── bug206.out │ ├── issue22683.out │ ├── issue24693.out │ ├── issue25322.out │ ├── issue21808.out │ ├── issue6899.out │ ├── issue21879.out │ ├── issue28390.out │ ├── issue5957.dir │ │ ├── b.go │ │ └── a.go │ ├── issue21887.out │ ├── 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 │ ├── issue18911.go │ ├── issue22941.go │ ├── issue24693.go │ ├── bug083.go │ ├── bug106.dir │ │ └── bug0.go │ ├── bug133.go │ └── bug504.dir │ │ └── a.go ├── helloworld.out ├── sigchld.out ├── 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 ├── doc ├── articles │ ├── wiki │ │ ├── test_Test.txt.good │ │ ├── test_view.good │ │ ├── view.html │ │ └── test_edit.good │ └── 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 ├── go-logo-black.png ├── go-logo-blue.png ├── go-logo-white.png ├── codewalk │ └── popout.png └── play │ └── hello.go ├── robots.txt ├── favicon.ico ├── lib └── time │ └── zoneinfo.zip └── .github └── CODE_OF_CONDUCT.md /api/next.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /misc/nacl/testdata/empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/go/build/testdata/empty/dummy: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixedbugs/bug328.out: -------------------------------------------------------------------------------- 1 | 0x0 2 | -------------------------------------------------------------------------------- /misc/nacl/testdata/bin/placeholder: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixedbugs/bug206.out: -------------------------------------------------------------------------------- 1 | 0 2 | 0 3 | -------------------------------------------------------------------------------- /test/fixedbugs/issue22683.out: -------------------------------------------------------------------------------- 1 | true 2 | -------------------------------------------------------------------------------- /test/helloworld.out: -------------------------------------------------------------------------------- 1 | hello, world 2 | -------------------------------------------------------------------------------- /test/sigchld.out: -------------------------------------------------------------------------------- 1 | survived SIGCHLD 2 | -------------------------------------------------------------------------------- /misc/cgo/stdio/hello.out: -------------------------------------------------------------------------------- 1 | hello, world 2 | -------------------------------------------------------------------------------- /src/archive/tar/testdata/small.txt: -------------------------------------------------------------------------------- 1 | Kilts -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/exclude/empty/x.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/net/http/testdata/file: -------------------------------------------------------------------------------- 1 | 0123456789 2 | -------------------------------------------------------------------------------- /src/net/http/testdata/style.css: -------------------------------------------------------------------------------- 1 | body {} 2 | -------------------------------------------------------------------------------- /test/fixedbugs/issue24693.out: -------------------------------------------------------------------------------- 1 | ok 2 | ok 3 | -------------------------------------------------------------------------------- /test/fixedbugs/issue25322.out: -------------------------------------------------------------------------------- 1 | 40000000 2 | -------------------------------------------------------------------------------- /doc/articles/wiki/test_Test.txt.good: -------------------------------------------------------------------------------- 1 | some content -------------------------------------------------------------------------------- /doc/ie.css: -------------------------------------------------------------------------------- 1 | #nav-main li { display: inline; } 2 | -------------------------------------------------------------------------------- /misc/nacl/testdata/hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.1 localhost 2 | -------------------------------------------------------------------------------- /robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: / 3 | -------------------------------------------------------------------------------- /src/cmd/go/internal/modfile/testdata/empty.in: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/badmod/go.mod: -------------------------------------------------------------------------------- 1 | module m 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/rundir/x.go: -------------------------------------------------------------------------------- 1 | package main 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/badc/x.c: -------------------------------------------------------------------------------- 1 | // C code! 2 | -------------------------------------------------------------------------------- /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/issue6899.out: -------------------------------------------------------------------------------- 1 | -0.000000e+000 2 | -------------------------------------------------------------------------------- /src/archive/tar/testdata/small2.txt: -------------------------------------------------------------------------------- 1 | Google.com 2 | -------------------------------------------------------------------------------- /src/cmd/go/internal/modfile/testdata/empty.golden: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/badc/x.go: -------------------------------------------------------------------------------- 1 | package badc 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/badpkg/x.go: -------------------------------------------------------------------------------- 1 | pkg badpkg 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/dupload/p/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testonly/p_test.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/go/build/testdata/doc/c_test.go: -------------------------------------------------------------------------------- 1 | package doc 2 | -------------------------------------------------------------------------------- /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/cmd/go/testdata/rundir/sub/sub.go: -------------------------------------------------------------------------------- 1 | package main 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/cgocover3/p_test.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/cgocover4/notcgo.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/empty/pkg/pkg.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/empty/pkgtest/pkg.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/exclude/ignore/_x.go: -------------------------------------------------------------------------------- 1 | package x 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/syntaxerror/x.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/testcycle/q1/q1.go: -------------------------------------------------------------------------------- 1 | package q1 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/testdep/p1/p1.go: -------------------------------------------------------------------------------- 1 | package p1 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vend/dir1/dir1.go: -------------------------------------------------------------------------------- 1 | package dir1 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vend/vendor/p/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vend/vendor/q/q.go: -------------------------------------------------------------------------------- 1 | package q 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vend/x/vendor/p/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vend/x/vendor/r/r.go: -------------------------------------------------------------------------------- 1 | package r 2 | -------------------------------------------------------------------------------- /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/large-ndots-resolv.conf: -------------------------------------------------------------------------------- 1 | options ndots:16 -------------------------------------------------------------------------------- /test/fixedbugs/issue21879.out: -------------------------------------------------------------------------------- 1 | main.main 2 | main.main 3 | -------------------------------------------------------------------------------- /test/fixedbugs/issue28390.out: -------------------------------------------------------------------------------- 1 | 1 2 | {2 3 map[3:3]} 3 | -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/favicon.ico -------------------------------------------------------------------------------- /src/cmd/go/internal/modfile/testdata/module.in: -------------------------------------------------------------------------------- 1 | module "abc" 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/go/testdata/shadow/root1/src/foo/foo.go: -------------------------------------------------------------------------------- 1 | package foo 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/shadow/root2/src/foo/foo.go: -------------------------------------------------------------------------------- 1 | package foo 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/canonical/a/vendor/c/c.go: -------------------------------------------------------------------------------- 1 | package c 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/cgoasm/p.s: -------------------------------------------------------------------------------- 1 | TEXT asm(SB),$0 2 | RET 3 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/dupload/vendor/p/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/empty/pkgtestxtest/pkg.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/empty/pkgxtest/pkg.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/empty/test/test_test.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vetpkg/a_test.go: -------------------------------------------------------------------------------- 1 | package p_test 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testcover/pkg2/a_test.go: -------------------------------------------------------------------------------- 1 | package pkg2 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testvendor2/vendor/x/x.go: -------------------------------------------------------------------------------- 1 | package x 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 | -------------------------------------------------------------------------------- /doc/share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/share.png -------------------------------------------------------------------------------- /src/cmd/api/testdata/src/issue21181/dep/p_amd64.go: -------------------------------------------------------------------------------- 1 | package dep 2 | -------------------------------------------------------------------------------- /src/cmd/go/internal/modfile/testdata/module.golden: -------------------------------------------------------------------------------- 1 | module abc 2 | -------------------------------------------------------------------------------- /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/cmd/go/testdata/shadow/root1/src/math/math.go: -------------------------------------------------------------------------------- 1 | package math 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/empty/pkgtest/test_test.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/empty/testxtest/test_test.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/empty/xtest/xtest_test.go: -------------------------------------------------------------------------------- 1 | package p_test 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/importmain/test/test.go: -------------------------------------------------------------------------------- 1 | package test 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testvendor/src/q/vendor/x/x.go: -------------------------------------------------------------------------------- 1 | package x 2 | -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-zero.wb.expect-noinput: -------------------------------------------------------------------------------- 1 | 2$ -------------------------------------------------------------------------------- /test/printbig.out: -------------------------------------------------------------------------------- 1 | -9223372036854775808 2 | 9223372036854775807 3 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/importcom/bad.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import "bad" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/importcom/src/bad/bad.go: -------------------------------------------------------------------------------- 1 | package bad // import 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/modlegacy/src/new/sub/go.mod: -------------------------------------------------------------------------------- 1 | module new/sub/v2 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/empty/pkgtestxtest/test_test.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/empty/pkgxtest/xtest_test.go: -------------------------------------------------------------------------------- 1 | package p_test 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/empty/testxtest/xtest_test.go: -------------------------------------------------------------------------------- 1 | package p_test 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/run/internal/internal.go: -------------------------------------------------------------------------------- 1 | package internal 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testinternal2/x/y/z/internal/w/w.go: -------------------------------------------------------------------------------- 1 | package w 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testinternal4/src/q/internal/x/x.go: -------------------------------------------------------------------------------- 1 | package x 2 | -------------------------------------------------------------------------------- /test/fixedbugs/issue21887.out: -------------------------------------------------------------------------------- 1 | 4294967295 2 | 18446744073709551615 3 | -------------------------------------------------------------------------------- /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/gopher/doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/doc.png -------------------------------------------------------------------------------- /doc/gopher/pkg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/pkg.png -------------------------------------------------------------------------------- /doc/gopher/ref.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/ref.png -------------------------------------------------------------------------------- /doc/gopher/run.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/run.png -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/canonical/a/a.go: -------------------------------------------------------------------------------- 1 | package a 2 | 3 | import _ "c" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/empty/pkgtestxtest/xtest_test.go: -------------------------------------------------------------------------------- 1 | package p_test 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vend/bad.go: -------------------------------------------------------------------------------- 1 | package vend 2 | 3 | import _ "r" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vend/good.go: -------------------------------------------------------------------------------- 1 | package vend 2 | 3 | import _ "p" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vend/vendor/vend/dir1/dir2/dir2.go: -------------------------------------------------------------------------------- 1 | package dir2 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testvendor2/src/p/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import "x" 4 | -------------------------------------------------------------------------------- /doc/go-logo-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/go-logo-black.png -------------------------------------------------------------------------------- /doc/go-logo-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/go-logo-blue.png -------------------------------------------------------------------------------- /doc/go-logo-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/go-logo-white.png -------------------------------------------------------------------------------- /doc/gopher/bumper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/bumper.png -------------------------------------------------------------------------------- /doc/gopher/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/help.png -------------------------------------------------------------------------------- /doc/gopher/talks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/talks.png -------------------------------------------------------------------------------- /lib/time/zoneinfo.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/lib/time/zoneinfo.zip -------------------------------------------------------------------------------- /src/cmd/go/testdata/importcom/conflict.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import "conflict" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/importcom/src/conflict/a.go: -------------------------------------------------------------------------------- 1 | package conflict // import "a" 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/importcom/src/works/x/x.go: -------------------------------------------------------------------------------- 1 | package x // import "works/x" 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/importcom/src/wrongplace/x.go: -------------------------------------------------------------------------------- 1 | package x // import "my/x" 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/importcom/works.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import _ "works/x" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/modlegacy/src/new/sub/inner/go.mod: -------------------------------------------------------------------------------- 1 | module new/sub/inner 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/coverdep/p1/p1.go: -------------------------------------------------------------------------------- 1 | package p1 2 | 3 | import _ "errors" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/coverdot1/p.go: -------------------------------------------------------------------------------- 1 | package coverdot1 2 | 3 | func F() {} 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/exclude/x.go: -------------------------------------------------------------------------------- 1 | // +build linux,!linux 2 | 3 | package x 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/exclude/x_linux.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package x 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/my.pkg/pkg.go: -------------------------------------------------------------------------------- 1 | package pkg 2 | 3 | var Text = "unset" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/run/subdir/internal/private/private.go: -------------------------------------------------------------------------------- 1 | package private 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vend/subdir/bad.go: -------------------------------------------------------------------------------- 1 | package subdir 2 | 3 | import _ "r" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testvendor/src/q/y/y.go: -------------------------------------------------------------------------------- 1 | package y 2 | 3 | import _ "x" 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /doc/codewalk/popout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/codewalk/popout.png -------------------------------------------------------------------------------- /doc/gopher/biplane.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/biplane.jpg -------------------------------------------------------------------------------- /doc/gopher/gopherbw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/gopherbw.png -------------------------------------------------------------------------------- /doc/gopher/project.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/project.png -------------------------------------------------------------------------------- /src/cmd/go/testdata/importcom/src/conflict/b.go: -------------------------------------------------------------------------------- 1 | package conflict /* import "b" */ 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/importcom/wrongplace.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import "wrongplace" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/canonical/b/b.go: -------------------------------------------------------------------------------- 1 | package b 2 | 3 | import _ "canonical/a/" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/canonical/d/d.go: -------------------------------------------------------------------------------- 1 | package d 2 | 3 | import _ "canonical/b" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/coverbad/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | func f() { 4 | g() 5 | } 6 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/not_main/not_main.go: -------------------------------------------------------------------------------- 1 | package not_main 2 | 3 | func F() {} 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/testdep/p2/p2.go: -------------------------------------------------------------------------------- 1 | package p2 2 | 3 | import _ "testdep/p3" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/testdep/p3/p3.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | package ignored 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vend/subdir/good.go: -------------------------------------------------------------------------------- 1 | package subdir 2 | 3 | import _ "p" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testimport/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | func F() int { return 1 } 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testvendor/src/q/z/z.go: -------------------------------------------------------------------------------- 1 | package z 2 | 3 | import _ "q/vendor/x" 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/goprint.out: -------------------------------------------------------------------------------- 1 | 42 true false true +1.500000e+000 world 0x0 [0/0]0x0 0x0 0x0 255 2 | -------------------------------------------------------------------------------- /doc/gopher/fiveyears.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/fiveyears.jpg -------------------------------------------------------------------------------- /doc/gopher/frontpage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/frontpage.png -------------------------------------------------------------------------------- /doc/gopher/gophercolor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/gophercolor.png -------------------------------------------------------------------------------- /doc/gopher/modelsheet.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/modelsheet.jpg -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/import1/x.go: -------------------------------------------------------------------------------- 1 | package x 2 | 3 | import "import1" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/modlegacy/src/new/new.go: -------------------------------------------------------------------------------- 1 | package new 2 | 3 | import _ "new/v2/p2" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/coverdep2/p1/p.go: -------------------------------------------------------------------------------- 1 | package p1 2 | 3 | func F() int { return 1 } 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/dupload/p2/p2.go: -------------------------------------------------------------------------------- 1 | package p2 2 | 3 | import _ "dupload/vendor/p" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/testdep/p1/p1_test.go: -------------------------------------------------------------------------------- 1 | package p1 2 | 3 | import _ "testdep/p2" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vend/x/vendor/p/p/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import _ "notfound" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testimport/p1/p1.go: -------------------------------------------------------------------------------- 1 | package p1 2 | 3 | func F() int { return 1 } 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testimport/p2/p2.go: -------------------------------------------------------------------------------- 1 | package p2 2 | 3 | func F() int { return 1 } 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testinternal/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import _ "net/http/internal" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testinternal2/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import _ "./x/y/z/internal/w" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testinternal4/src/q/j/j.go: -------------------------------------------------------------------------------- 1 | package j 2 | 3 | import _ "q/internal/x" 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/gopher/appenginelogo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/appenginelogo.gif -------------------------------------------------------------------------------- /doc/gopher/bumper192x108.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/bumper192x108.png -------------------------------------------------------------------------------- /doc/gopher/bumper320x180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/bumper320x180.png -------------------------------------------------------------------------------- /doc/gopher/bumper480x270.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/bumper480x270.png -------------------------------------------------------------------------------- /doc/gopher/bumper640x360.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/bumper640x360.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/import1/x_windows.go: -------------------------------------------------------------------------------- 1 | package x 2 | 3 | import "import2" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/importcom/src/works/x/x1.go: -------------------------------------------------------------------------------- 1 | package x // important! not an import comment 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/cgotest/m.go: -------------------------------------------------------------------------------- 1 | package cgotest 2 | 3 | import "C" 4 | 5 | var _ C.int 6 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/main_test/m.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | func F() {} 4 | func main() {} 5 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/syntaxerror/x_test.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | func f() (x.y, z int) { 4 | } 5 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/xtestonly/f.go: -------------------------------------------------------------------------------- 1 | package xtestonly 2 | 3 | func F() int { return 42 } 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testinternal3/t.go: -------------------------------------------------------------------------------- 1 | package t 2 | 3 | import _ "internal/does-not-exist" 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/appenginegopher.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/appenginegopher.jpg -------------------------------------------------------------------------------- /doc/gopher/gophercolor16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/gophercolor16x16.png -------------------------------------------------------------------------------- /doc/gopher/pencil/gopherhat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/pencil/gopherhat.jpg -------------------------------------------------------------------------------- /src/archive/tar/testdata/v7.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/tar/testdata/v7.tar -------------------------------------------------------------------------------- /src/archive/zip/testdata/dd.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/dd.zip -------------------------------------------------------------------------------- /src/cmd/go/internal/imports/testdata/import1/x_darwin.go: -------------------------------------------------------------------------------- 1 | package xxxx 2 | 3 | import "import3" 4 | -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/stdin5.golden: -------------------------------------------------------------------------------- 1 | //gofmt -stdin 2 | 3 | i := 5 // Line comment without newline. -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/google/pprof/internal/driver/testdata/pprof.cpu.comments: -------------------------------------------------------------------------------- 1 | some-comment 2 | -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/63cd688ddff425bbbc220fbb7bd4fa11616a8b64-1.bad: -------------------------------------------------------------------------------- 1 | go 1.11 traceAf$c9 -------------------------------------------------------------------------------- /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/pencil/gophermega.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/pencil/gophermega.jpg -------------------------------------------------------------------------------- /doc/gopher/pencil/gopherswim.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/pencil/gopherswim.jpg -------------------------------------------------------------------------------- /misc/chrome/gophertool/gopher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/misc/chrome/gophertool/gopher.png -------------------------------------------------------------------------------- /src/archive/zip/testdata/test.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/test.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/unix.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/unix.zip -------------------------------------------------------------------------------- /src/cmd/doc/testdata/nested/ignore.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | // Ignored package 4 | package nested 5 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/coverbad/p1.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import "C" 4 | 5 | func h() { 6 | j() 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vend/vendor/strings/msg.go: -------------------------------------------------------------------------------- 1 | package strings 2 | 3 | var Msg = "hello, world" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testvendor/src/p/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import ( 4 | _ "q/y" 5 | _ "q/z" 6 | ) 7 | -------------------------------------------------------------------------------- /src/image/testdata/video-001.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.gif -------------------------------------------------------------------------------- /src/image/testdata/video-001.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.png -------------------------------------------------------------------------------- /src/net/testdata/case-hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.1 PreserveMe PreserveMe.local 2 | ::1 PreserveMe PreserveMe.local 3 | -------------------------------------------------------------------------------- /src/runtime/pprof/testdata/test32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/runtime/pprof/testdata/test32 -------------------------------------------------------------------------------- /src/runtime/pprof/testdata/test64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/runtime/pprof/testdata/test64 -------------------------------------------------------------------------------- /doc/gopher/appenginegophercolor.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/appenginegophercolor.jpg -------------------------------------------------------------------------------- /doc/gopher/pencil/gopherhelmet.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/pencil/gopherhelmet.jpg -------------------------------------------------------------------------------- /doc/gopher/pencil/gopherrunning.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/pencil/gopherrunning.jpg -------------------------------------------------------------------------------- /doc/gopher/pencil/gopherswrench.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/doc/gopher/pencil/gopherswrench.jpg -------------------------------------------------------------------------------- /misc/cgo/testshared/src/implicit/implicit.go: -------------------------------------------------------------------------------- 1 | package implicit 2 | 3 | func I() int { 4 | return 42 5 | } 6 | -------------------------------------------------------------------------------- /src/archive/zip/testdata/readme.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/readme.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/symlink.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/symlink.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/time-go.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/time-go.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/winxp.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/winxp.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/zip64-2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/zip64-2.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/zip64.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/zip64.zip -------------------------------------------------------------------------------- /src/cmd/go/testdata/importcycle/src/selfimport/selfimport.go: -------------------------------------------------------------------------------- 1 | package selfimport 2 | 3 | import "selfimport" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/coverasm/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | func f() 4 | 5 | func g() { 6 | println("g") 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/coverdep/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import _ "coverdep/p1" 4 | 5 | func F() { 6 | } 7 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/hello/hello.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | func main() { 4 | println("hello, world") 5 | } 6 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/run/good.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import _ "run/internal" 4 | 5 | func main() {} 6 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/sleepybad/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | // missing import 4 | 5 | var _ = io.DoesNotExist 6 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/testcycle/p3/p3.go: -------------------------------------------------------------------------------- 1 | package p3 2 | 3 | func init() { 4 | println("p3 init") 5 | } 6 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vend/x/invalid/invalid.go: -------------------------------------------------------------------------------- 1 | package invalid 2 | 3 | import "vend/x/invalid/vendor/foo" 4 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vetfail/p2/p2.go: -------------------------------------------------------------------------------- 1 | package p2 2 | 3 | import _ "vetfail/p1" 4 | 5 | func F() { 6 | } 7 | -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/cycle.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/dwarf/testdata/cycle.elf -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/line2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void f2() 4 | { 5 | printf("hello\n"); 6 | } 7 | -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/ranges.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/dwarf/testdata/ranges.elf -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/split.c: -------------------------------------------------------------------------------- 1 | // gcc -gsplit-dwarf split.c -o split.elf 2 | 3 | int main() 4 | { 5 | } 6 | -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/split.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/dwarf/testdata/split.elf -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/typedef.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/dwarf/testdata/typedef.elf -------------------------------------------------------------------------------- /src/image/png/testdata/benchGray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/benchGray.png -------------------------------------------------------------------------------- /src/image/png/testdata/benchRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/benchRGB.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.rgb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.rgb.png -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/495712b6e35ad7566869c887aa823fcbf69c0b80-1.weird: -------------------------------------------------------------------------------- 1 | go 1.11 traceA_"_ac9 -------------------------------------------------------------------------------- /src/runtime/pprof/testdata/test32be: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/runtime/pprof/testdata/test32be -------------------------------------------------------------------------------- /src/runtime/pprof/testdata/test64be: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/runtime/pprof/testdata/test64be -------------------------------------------------------------------------------- /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/play/hello.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "fmt" 4 | 5 | func main() { 6 | fmt.Println("Hello, 世界") 7 | } 8 | -------------------------------------------------------------------------------- /misc/cgo/testshared/src/execgo/exe.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | /* 4 | */ 5 | import "C" 6 | 7 | func main() { 8 | } 9 | -------------------------------------------------------------------------------- /src/archive/tar/testdata/gnu-utf8.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/tar/testdata/gnu-utf8.tar -------------------------------------------------------------------------------- /src/archive/tar/testdata/neg-size.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/tar/testdata/neg-size.tar -------------------------------------------------------------------------------- /src/archive/zip/testdata/readme.notzip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/readme.notzip -------------------------------------------------------------------------------- /src/archive/zip/testdata/time-7zip.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/time-7zip.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/time-osx.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/time-osx.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/time-win7.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/time-win7.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/utf8-7zip.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/utf8-7zip.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/utf8-osx.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/utf8-osx.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/testdata/src/cgoasm/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | /* 4 | // hi 5 | */ 6 | import "C" 7 | 8 | func F() {} 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/coverbad/p_test.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import "testing" 4 | 5 | func Test(t *testing.T) {} 6 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/coverdot2/p.go: -------------------------------------------------------------------------------- 1 | package coverdot2 2 | 3 | import . "coverdot1" 4 | 5 | func G() { F() } 6 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testinternal4/src/p/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import ( 4 | _ "q/internal/x" 5 | _ "q/j" 6 | ) 7 | -------------------------------------------------------------------------------- /src/cmd/internal/buildid/testdata/a.pe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/internal/buildid/testdata/a.pe -------------------------------------------------------------------------------- /src/cmd/internal/buildid/testdata/p.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/internal/buildid/testdata/p.a -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/google/pprof/internal/driver/testdata/pprof.heap.comments: -------------------------------------------------------------------------------- 1 | comment 2 | #hidden comment 3 | -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/e.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/bzip2/testdata/e.txt.bz2 -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/line-gcc.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/dwarf/testdata/line-gcc.elf -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/typedef.elf4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/dwarf/testdata/typedef.elf4 -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/typedef.macho: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/dwarf/testdata/typedef.macho -------------------------------------------------------------------------------- /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.5bpp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.5bpp.gif -------------------------------------------------------------------------------- /src/image/testdata/video-001.cmyk.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.cmyk.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.cmyk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.cmyk.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.rgb.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.rgb.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-005.gray.gif -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-005.gray.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-005.gray.png -------------------------------------------------------------------------------- /src/runtime/race/race_linux_amd64.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/runtime/race/race_linux_amd64.syso -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /misc/cgo/testshared/src/exe3/exe3.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "dep3" 4 | 5 | func main() { 6 | dep3.D3() 7 | } 8 | -------------------------------------------------------------------------------- /src/archive/tar/testdata/gnu-not-utf8.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/tar/testdata/gnu-not-utf8.tar -------------------------------------------------------------------------------- /src/archive/tar/testdata/invalid-go17.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/tar/testdata/invalid-go17.tar -------------------------------------------------------------------------------- /src/archive/tar/testdata/issue10968.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/tar/testdata/issue10968.tar -------------------------------------------------------------------------------- /src/archive/tar/testdata/issue12435.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/tar/testdata/issue12435.tar -------------------------------------------------------------------------------- /src/archive/tar/testdata/writer-big.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/tar/testdata/writer-big.tar -------------------------------------------------------------------------------- /src/archive/zip/testdata/time-22738.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/time-22738.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/time-infozip.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/time-infozip.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/time-winrar.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/time-winrar.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/time-winzip.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/time-winzip.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/utf8-infozip.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/utf8-infozip.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/utf8-winrar.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/utf8-winrar.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/utf8-winzip.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/utf8-winzip.zip -------------------------------------------------------------------------------- /src/cmd/go/testdata/local/hard.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "./sub" 4 | 5 | func main() { 6 | sub.Hello() 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/go-cmd-test/helloworld.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | func main() { 4 | println("hello world") 5 | } 6 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/run/bad.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import _ "run/subdir/internal/private" 4 | 5 | func main() {} 6 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vetpkg/b.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import "fmt" 4 | 5 | func f() { 6 | fmt.Printf("%d") 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/internal/buildid/testdata/a.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/internal/buildid/testdata/a.elf -------------------------------------------------------------------------------- /src/cmd/internal/buildid/testdata/a.macho: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/internal/buildid/testdata/a.macho -------------------------------------------------------------------------------- /src/compress/gzip/testdata/issue6550.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/gzip/testdata/issue6550.gz -------------------------------------------------------------------------------- /src/crypto/ecdsa/testdata/SigVer.rsp.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/crypto/ecdsa/testdata/SigVer.rsp.bz2 -------------------------------------------------------------------------------- /src/crypto/rsa/testdata/pss-vect.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/crypto/rsa/testdata/pss-vect.txt.bz2 -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/line-clang.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/dwarf/testdata/line-clang.elf -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/line-gcc-win.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/dwarf/testdata/line-gcc-win.bin -------------------------------------------------------------------------------- /src/debug/elf/testdata/compressed-32.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/compressed-32.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/compressed-64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/compressed-64.obj -------------------------------------------------------------------------------- /src/debug/pe/testdata/gcc-386-mingw-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/pe/testdata/gcc-386-mingw-exec -------------------------------------------------------------------------------- /src/debug/pe/testdata/gcc-386-mingw-obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/pe/testdata/gcc-386-mingw-obj -------------------------------------------------------------------------------- /src/debug/pe/testdata/gcc-amd64-mingw-obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/pe/testdata/gcc-amd64-mingw-obj -------------------------------------------------------------------------------- /src/encoding/json/testdata/code.json.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/encoding/json/testdata/code.json.gz -------------------------------------------------------------------------------- /src/image/png/testdata/benchPaletted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/benchPaletted.png -------------------------------------------------------------------------------- /src/image/png/testdata/gray-gradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/gray-gradient.png -------------------------------------------------------------------------------- /src/image/png/testdata/invalid-crc32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/invalid-crc32.png -------------------------------------------------------------------------------- /src/image/png/testdata/invalid-noend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/invalid-noend.png -------------------------------------------------------------------------------- /src/image/png/testdata/invalid-trunc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/invalid-trunc.png -------------------------------------------------------------------------------- /src/image/png/testdata/invalid-zlib.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/invalid-zlib.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.221212.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.221212.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.221212.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.221212.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.410.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.q50.410.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.411.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.q50.411.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.420.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.q50.420.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.422.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.q50.422.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.440.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.q50.440.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.444.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.q50.444.jpeg -------------------------------------------------------------------------------- /src/internal/trace/testdata/http_1_5_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/http_1_5_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/http_1_7_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/http_1_7_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/http_1_9_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/http_1_9_good -------------------------------------------------------------------------------- /src/runtime/race/race_darwin_amd64.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/runtime/race/race_darwin_amd64.syso -------------------------------------------------------------------------------- /src/runtime/race/race_freebsd_amd64.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/runtime/race/race_freebsd_amd64.syso -------------------------------------------------------------------------------- /src/runtime/race/race_linux_ppc64le.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/runtime/race/race_linux_ppc64le.syso -------------------------------------------------------------------------------- /src/runtime/race/race_netbsd_amd64.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/runtime/race/race_netbsd_amd64.syso -------------------------------------------------------------------------------- /src/runtime/race/race_windows_amd64.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/runtime/race/race_windows_amd64.syso -------------------------------------------------------------------------------- /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-sparse-big.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/tar/testdata/gnu-sparse-big.tar -------------------------------------------------------------------------------- /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/go/internal/modfile/testdata/rule1.golden: -------------------------------------------------------------------------------- 1 | module "x" 2 | 3 | module "y" 4 | 5 | require "x" 6 | 7 | require x 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/local/easy.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "./easysub" 4 | 5 | func main() { 6 | easysub.Hello() 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/coverasm/p.s: -------------------------------------------------------------------------------- 1 | // empty asm file, 2 | // so go test doesn't complain about declaration of f in p.go. 3 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/coverdep2/p2/p2.go: -------------------------------------------------------------------------------- 1 | package p2 2 | 3 | import "coverdep2/p1" 4 | 5 | func F() { 6 | p1.F() 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/importmain/ismain/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import _ "importmain/test" 4 | 5 | func main() {} 6 | -------------------------------------------------------------------------------- /src/cmd/internal/goobj/testdata/mycgo/go.go: -------------------------------------------------------------------------------- 1 | package mycgo 2 | 3 | // void c1(void); 4 | // void c2(void); 5 | import "C" 6 | -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/random.data.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/bzip2/testdata/random.data.bz2 -------------------------------------------------------------------------------- /src/debug/elf/testdata/gcc-386-freebsd-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/gcc-386-freebsd-exec -------------------------------------------------------------------------------- /src/debug/elf/testdata/gcc-amd64-linux-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/gcc-amd64-linux-exec -------------------------------------------------------------------------------- /src/debug/elf/testdata/hello-world-core.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/hello-world-core.gz -------------------------------------------------------------------------------- /src/debug/pe/testdata/gcc-amd64-mingw-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/pe/testdata/gcc-amd64-mingw-exec -------------------------------------------------------------------------------- /src/debug/plan9obj/testdata/386-plan9-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/plan9obj/testdata/386-plan9-exec -------------------------------------------------------------------------------- /src/image/testdata/video-001.interlaced.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.interlaced.gif -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.q50.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-005.gray.q50.jpeg -------------------------------------------------------------------------------- /src/internal/trace/testdata/http_1_10_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/http_1_10_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/http_1_11_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/http_1_11_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_1_5_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/stress_1_5_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_1_7_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/stress_1_7_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_1_9_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/stress_1_9_good -------------------------------------------------------------------------------- /src/regexp/testdata/re2-exhaustive.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/regexp/testdata/re2-exhaustive.txt.bz2 -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /misc/cgo/errors/src/issue18889.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "C" 4 | 5 | func main() { 6 | _ = C.malloc // ERROR HERE 7 | } 8 | -------------------------------------------------------------------------------- /src/archive/zip/testdata/gophercolor16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/gophercolor16x16.png -------------------------------------------------------------------------------- /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/cmd/go/testdata/src/bench/x_test.go: -------------------------------------------------------------------------------- 1 | package bench 2 | 3 | import "testing" 4 | 5 | func Benchmark(b *testing.B) { 6 | } 7 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/cgocover/p_test.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import "testing" 4 | 5 | func TestF(t *testing.T) { 6 | F() 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/coverasm/p_test.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import "testing" 4 | 5 | func Test(t *testing.T) { 6 | g() 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/coverdep/p_test.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import "testing" 4 | 5 | func Test(t *testing.T) { 6 | F() 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/notest/hello.go: -------------------------------------------------------------------------------- 1 | package notest 2 | 3 | func hello() { 4 | println("hello world") 5 | } 6 | Hello world 7 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/testcycle/p1/p1_test.go: -------------------------------------------------------------------------------- 1 | package p1 2 | 3 | import "testing" 4 | 5 | func Test(t *testing.T) { 6 | } 7 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/standalone_test.go: -------------------------------------------------------------------------------- 1 | package standalone_test 2 | 3 | import "testing" 4 | 5 | func Test(t *testing.T) { 6 | } 7 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testcover/pkg1/a.go: -------------------------------------------------------------------------------- 1 | package pkg1 2 | 3 | import "fmt" 4 | 5 | func F() { 6 | fmt.Println("pkg1") 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testcover/pkg2/a.go: -------------------------------------------------------------------------------- 1 | package pkg2 2 | 3 | import "fmt" 4 | 5 | func F() { 6 | fmt.Println("pkg2") 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testcover/pkg3/a.go: -------------------------------------------------------------------------------- 1 | package pkg3 2 | 3 | import "fmt" 4 | 5 | func F() { 6 | fmt.Println("pkg3") 7 | } 8 | -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/fail-issue5747.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/bzip2/testdata/fail-issue5747.bz2 -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/pass-random1.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/bzip2/testdata/pass-random1.bin -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/pass-random1.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/bzip2/testdata/pass-random1.bz2 -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/pass-random2.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/bzip2/testdata/pass-random2.bin -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/pass-random2.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/bzip2/testdata/pass-random2.bz2 -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/pass-sawtooth.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/bzip2/testdata/pass-sawtooth.bz2 -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-pi.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-pi.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-1k.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-rand-1k.in -------------------------------------------------------------------------------- /src/debug/macho/testdata/clang-386-darwin.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/macho/testdata/clang-386-darwin.obj -------------------------------------------------------------------------------- /src/debug/macho/testdata/gcc-386-darwin-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/macho/testdata/gcc-386-darwin-exec -------------------------------------------------------------------------------- /src/debug/macho/testdata/gcc-amd64-darwin-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/macho/testdata/gcc-amd64-darwin-exec -------------------------------------------------------------------------------- /src/debug/plan9obj/testdata/amd64-plan9-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/plan9obj/testdata/amd64-plan9-exec -------------------------------------------------------------------------------- /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/benchNRGBA-gradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/benchNRGBA-gradient.png -------------------------------------------------------------------------------- /src/image/png/testdata/benchNRGBA-opaque.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/benchNRGBA-opaque.png -------------------------------------------------------------------------------- /src/image/png/testdata/benchRGB-interlace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/benchRGB-interlace.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn0g01.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn0g02.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn0g04.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn0g08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn0g16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn2c08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn2c16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn3p01.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn3p02.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn3p04.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn4a08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn4a08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn4a16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn4a16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn6a08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn6a08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn6a16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn6a16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbbn0g01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/ftbbn0g01.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbbn0g02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/ftbbn0g02.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbbn0g04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/ftbbn0g04.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbbn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/ftbbn2c16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbbn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/ftbbn3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbgn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/ftbgn2c16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbgn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/ftbgn3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbrn2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/ftbrn2c08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbwn0g16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/ftbwn0g16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbwn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/ftbwn3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbyn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/ftbyn3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftp0n0g08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/ftp0n0g08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftp0n2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/ftp0n2c08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftp0n3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/ftp0n3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftp1n3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/ftp1n3p08.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.q50.2x2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-005.gray.q50.2x2.jpeg -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_1_10_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/stress_1_10_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_1_11_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/stress_1_11_good -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /misc/cgo/test/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/ry/go/HEAD/src/archive/zip/testdata/crc32-not-streamed.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/go-no-datadesc-sig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/go-no-datadesc-sig.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/test-trailing-junk.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/test-trailing-junk.zip -------------------------------------------------------------------------------- /src/cmd/go/testdata/badmod/x.go: -------------------------------------------------------------------------------- 1 | package x 2 | 3 | import _ "appengine" 4 | import _ "nonexistent.rsc.io" // domain does not exist 5 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/dupload/dupload.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | _ "dupload/p2" 5 | _ "p" 6 | ) 7 | 8 | func main() {} 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/gencycle/gencycle.go: -------------------------------------------------------------------------------- 1 | //go:generate echo hello world 2 | 3 | package gencycle 4 | 5 | import _ "gencycle" 6 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/my.pkg/main/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "my.pkg" 4 | 5 | func main() { 6 | println(pkg.Text) 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vetfail/p2/p2_test.go: -------------------------------------------------------------------------------- 1 | package p2 2 | 3 | import "testing" 4 | 5 | func TestF(t *testing.T) { 6 | F() 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testcover/pkg3/a_test.go: -------------------------------------------------------------------------------- 1 | package pkg3 2 | 3 | import "testing" 4 | 5 | func TestF(t *testing.T) { 6 | F() 7 | } 8 | -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-pi.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-pi.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-max.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-rand-max.in -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-text.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-zero.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-zero.golden -------------------------------------------------------------------------------- /src/debug/macho/testdata/clang-amd64-darwin.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/macho/testdata/clang-amd64-darwin.obj -------------------------------------------------------------------------------- /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/go/internal/gccgoimporter/testdata/time.gox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/go/internal/gccgoimporter/testdata/time.gox -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g01-30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn0g01-30.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g02-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn0g02-29.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g04-31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn0g04-31.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p04-31i.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn3p04-31i.png -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_1_5_unordered: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/stress_1_5_unordered -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /misc/benchcmp: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo 'misc/benchcmp has moved:' >&2 4 | echo ' go get -u golang.org/x/tools/cmd/benchcmp' >&2 5 | exit 2 6 | -------------------------------------------------------------------------------- /src/archive/zip/testdata/go-with-datadesc-sig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/archive/zip/testdata/go-with-datadesc-sig.zip -------------------------------------------------------------------------------- /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/go/testdata/src/coverdot2/p_test.go: -------------------------------------------------------------------------------- 1 | package coverdot2 2 | 3 | import "testing" 4 | 5 | func TestG(t *testing.T) { 6 | G() 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/testcycle/p1/p1.go: -------------------------------------------------------------------------------- 1 | package p1 2 | 3 | import _ "testcycle/p2" 4 | 5 | func init() { 6 | println("p1 init") 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/testcycle/p2/p2.go: -------------------------------------------------------------------------------- 1 | package p2 2 | 3 | import _ "testcycle/p3" 4 | 5 | func init() { 6 | println("p2 init") 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/flate/testdata/huffman-null-max.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-null-max.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-pi.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-pi.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-1k.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-rand-1k.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-limit.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-rand-limit.in -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-max.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-rand-max.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-shifts.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-shifts.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-text.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-text.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-zero.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-zero.dyn.expect -------------------------------------------------------------------------------- /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/pe/testdata/gcc-386-mingw-no-symbols-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/pe/testdata/gcc-386-mingw-no-symbols-exec -------------------------------------------------------------------------------- /src/go/doc/testdata/bugpara.go: -------------------------------------------------------------------------------- 1 | package bugpara 2 | 3 | // BUG(rsc): Sometimes bugs have multiple paragraphs. 4 | // 5 | // Like this one. 6 | -------------------------------------------------------------------------------- /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/go/internal/gccgoimporter/testdata/unicode.gox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/go/internal/gccgoimporter/testdata/unicode.gox -------------------------------------------------------------------------------- /src/image/png/testdata/gray-gradient.interlaced.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/gray-gradient.interlaced.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p08-trns.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/png/testdata/pngsuite/basn3p08-trns.png -------------------------------------------------------------------------------- /test/fixedbugs/bug467.dir/p1.go: -------------------------------------------------------------------------------- 1 | package p1 2 | 3 | type SockaddrUnix int 4 | 5 | func (s SockaddrUnix) Error() string { return "blah" } 6 | -------------------------------------------------------------------------------- /doc/articles/wiki/view.html: -------------------------------------------------------------------------------- 1 |

{{.Title}}

2 | 3 |

[edit]

4 | 5 |
{{printf "%s" .Body}}
6 | -------------------------------------------------------------------------------- /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/go/testdata/local/sub/sub/subsub.go: -------------------------------------------------------------------------------- 1 | package subsub 2 | 3 | import "fmt" 4 | 5 | func Hello() { 6 | fmt.Println("subsub.Hello") 7 | } 8 | -------------------------------------------------------------------------------- /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-rand-1k.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-rand-1k.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-limit.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-rand-limit.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-shifts.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-shifts.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-shifts.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-shifts.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text-shift.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-text-shift.golden -------------------------------------------------------------------------------- /src/debug/elf/testdata/zdebug-test-gcc484-x86-64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/zdebug-test-gcc484-x86-64.obj -------------------------------------------------------------------------------- /src/debug/gosym/pclinetest.h: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | // Empty include file to generate z symbols 4 | 5 | 6 | 7 | 8 | 9 | // EOF 10 | -------------------------------------------------------------------------------- /src/debug/macho/testdata/gcc-amd64-darwin-exec-debug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/macho/testdata/gcc-amd64-darwin-exec-debug -------------------------------------------------------------------------------- /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/escapeinfo.gox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/go/internal/gccgoimporter/testdata/escapeinfo.gox -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/libimportsar.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/go/internal/gccgoimporter/testdata/libimportsar.a -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.410.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.q50.410.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.411.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.q50.411.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.420.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.q50.420.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.422.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.q50.422.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.440.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.q50.440.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.444.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.q50.444.progressive.jpeg -------------------------------------------------------------------------------- /src/internal/trace/testdata/user_task_span_1_11_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/user_task_span_1_11_good -------------------------------------------------------------------------------- /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/cmd/go/internal/modfile/testdata/replace.golden: -------------------------------------------------------------------------------- 1 | module abc 2 | 3 | replace xyz v1.2.3 => /tmp/z 4 | 5 | replace xyz v1.3.4 => my/xyz v1.3.4-me 6 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/local/easysub/easysub.go: -------------------------------------------------------------------------------- 1 | package easysub 2 | 3 | import "fmt" 4 | 5 | func Hello() { 6 | fmt.Println("easysub.Hello") 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/testcycle/q1/q1_test.go: -------------------------------------------------------------------------------- 1 | package q1 2 | 3 | import "testing" 4 | import _ "testcycle/q1" 5 | 6 | func Test(t *testing.T) {} 7 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/testnorun/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | func init() { 4 | panic("go test must not link and run test binaries without tests") 5 | } 6 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/standalone_benchmark_test.go: -------------------------------------------------------------------------------- 1 | package standalone_benchmark 2 | 3 | import "testing" 4 | 5 | func Benchmark(b *testing.B) { 6 | } 7 | -------------------------------------------------------------------------------- /src/cmd/internal/xcoff/testdata/hello.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void 4 | main(int argc, char *argv[]) 5 | { 6 | printf("hello, world\n"); 7 | } 8 | -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/Isaac.Newton-Opticks.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/bzip2/testdata/Isaac.Newton-Opticks.txt.bz2 -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-null-max.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-null-max.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-null-max.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-null-max.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-pi.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-pi.wb.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-1k.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-rand-1k.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-limit.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-rand-limit.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text-shift.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-text-shift.wb.expect -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-clang-arm.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/go-relocation-test-clang-arm.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-clang-x86.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/go-relocation-test-clang-x86.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc441-x86.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/go-relocation-test-gcc441-x86.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc492-arm.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/go-relocation-test-gcc492-arm.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc5-ppc.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/go-relocation-test-gcc5-ppc.obj -------------------------------------------------------------------------------- /src/debug/macho/testdata/fat-gcc-386-amd64-darwin-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/macho/testdata/fat-gcc-386-amd64-darwin-exec -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/pointer.gox: -------------------------------------------------------------------------------- 1 | v1; 2 | package pointer; 3 | pkgpath pointer; 4 | type >>; 5 | -------------------------------------------------------------------------------- /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/testdata/video-001.progressive.truncated.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.progressive.truncated.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.progressive.truncated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.progressive.truncated.png -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.q50.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-005.gray.q50.progressive.jpeg -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_start_stop_1_10_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/stress_start_stop_1_10_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_start_stop_1_11_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/stress_start_stop_1_11_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_start_stop_1_5_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/stress_start_stop_1_5_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_start_stop_1_7_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/stress_start_stop_1_7_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_start_stop_1_9_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/trace/testdata/stress_start_stop_1_9_good -------------------------------------------------------------------------------- /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/go/internal/modfile/testdata/replace.in: -------------------------------------------------------------------------------- 1 | module "abc" 2 | 3 | replace "xyz" v1.2.3 => "/tmp/z" 4 | 5 | replace "xyz" v1.3.4 => "my/xyz" v1.3.4-me 6 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/skipper/skip_test.go: -------------------------------------------------------------------------------- 1 | package skipper 2 | 3 | import "testing" 4 | 5 | func Test(t *testing.T) { 6 | t.Skip("skipping") 7 | } 8 | -------------------------------------------------------------------------------- /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/cmd/internal/xcoff/testdata/gcc-ppc32-aix-dwarf2-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/internal/xcoff/testdata/gcc-ppc32-aix-dwarf2-exec -------------------------------------------------------------------------------- /src/cmd/internal/xcoff/testdata/gcc-ppc64-aix-dwarf2-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/internal/xcoff/testdata/gcc-ppc64-aix-dwarf2-exec -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-pi.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-pi.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-limit.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-rand-limit.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text-shift.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-text-shift.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-text.wb.expect-noinput -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc531-s390x.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/go-relocation-test-gcc531-s390x.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc540-mips.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/go-relocation-test-gcc540-mips.obj -------------------------------------------------------------------------------- /src/debug/macho/testdata/clang-386-darwin-exec-with-rpath: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/macho/testdata/clang-386-darwin-exec-with-rpath -------------------------------------------------------------------------------- /src/image/testdata/video-001.separate.dc.progression.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.separate.dc.progression.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.q50.2x2.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-005.gray.q50.2x2.progressive.jpeg -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vetpkg/c.go: -------------------------------------------------------------------------------- 1 | // +build tagtest 2 | 3 | package p 4 | 5 | import "fmt" 6 | 7 | func g() { 8 | fmt.Printf("%d", 3, 4) 9 | } 10 | -------------------------------------------------------------------------------- /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/flate/testdata/huffman-rand-1k.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-rand-1k.wb.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-shifts.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-shifts.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-shifts.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-shifts.wb.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-text.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-zero.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-zero.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/null-long-match.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/null-long-match.wb.expect-noinput -------------------------------------------------------------------------------- /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/gcc-amd64-openbsd-debug-with-rela.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/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/ry/go/HEAD/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/ry/go/HEAD/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/ry/go/HEAD/src/debug/elf/testdata/go-relocation-test-gcc482-aarch64.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc482-ppc64le.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/go-relocation-test-gcc482-ppc64le.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc492-mips64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/go-relocation-test-gcc492-mips64.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc492-mipsle.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/go-relocation-test-gcc492-mipsle.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc493-mips64le.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/go-relocation-test-gcc493-mips64le.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc620-sparc64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/go-relocation-test-gcc620-sparc64.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc720-riscv64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/elf/testdata/go-relocation-test-gcc720-riscv64.obj -------------------------------------------------------------------------------- /src/debug/macho/testdata/clang-amd64-darwin-exec-with-rpath: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/debug/macho/testdata/clang-amd64-darwin-exec-with-rpath -------------------------------------------------------------------------------- /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/go/internal/gcimporter/testdata/versions/test_go1.11_0i.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/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/ry/go/HEAD/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/ry/go/HEAD/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/ry/go/HEAD/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/ry/go/HEAD/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/ry/go/HEAD/src/go/internal/gcimporter/testdata/versions/test_go1.8_5.a -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /misc/cgo/testshared/src/exe2/exe2.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "dep2" 4 | 5 | func main() { 6 | d := &dep2.Dep2{} 7 | dep2.W = dep2.G() + 1 + d.Method() 8 | } 9 | -------------------------------------------------------------------------------- /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/local/easysub/main.go: -------------------------------------------------------------------------------- 1 | // +build ignore 2 | 3 | package main 4 | 5 | import "." 6 | 7 | func main() { 8 | easysub.Hello() 9 | } 10 | -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-null-max.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-null-max.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-null-max.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-null-max.wb.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-1k.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-rand-1k.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/null-long-match.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/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/ry/go/HEAD/src/go/internal/gcimporter/testdata/versions/test_go1.11_999i.a -------------------------------------------------------------------------------- /misc/cgo/testshared/src/explicit/explicit.go: -------------------------------------------------------------------------------- 1 | package explicit 2 | 3 | import ( 4 | "implicit" 5 | ) 6 | 7 | func E() int { 8 | return implicit.I() 9 | } 10 | -------------------------------------------------------------------------------- /misc/nacl/testdata/group: -------------------------------------------------------------------------------- 1 | nobody:*:-2: 2 | nogroup:*:-1: 3 | wheel:*:0:root 4 | daemon:*:1:root 5 | kmem:*:2:root 6 | sys:*:3:root 7 | tty:*:4:root 8 | operator:*:5:root 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/importmain/test/test_test.go: -------------------------------------------------------------------------------- 1 | package test_test 2 | 3 | import "testing" 4 | import _ "importmain/ismain" 5 | 6 | func TestCase(t *testing.T) {} 7 | -------------------------------------------------------------------------------- /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/compress/flate/testdata/huffman-rand-limit.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-rand-limit.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-limit.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-rand-limit.wb.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text-shift.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-text-shift.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text-shift.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/compress/flate/testdata/huffman-text-shift.wb.expect-noinput -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /misc/cgo/test/issue9026.go: -------------------------------------------------------------------------------- 1 | package cgotest 2 | 3 | import ( 4 | "testing" 5 | 6 | "./issue9026" 7 | ) 8 | 9 | func test9026(t *testing.T) { issue9026.Test(t) } 10 | -------------------------------------------------------------------------------- /src/cmd/go/internal/modfile/testdata/gopkg.in.golden: -------------------------------------------------------------------------------- 1 | module x 2 | 3 | require ( 4 | gopkg.in/mgo.v2 v2.0.0-20160818020120-3f83fa500528 5 | gopkg.in/yaml.v2 v2.2.1 6 | ) 7 | -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/google/pprof/profile/testdata/cppbench.cpu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/vendor/github.com/google/pprof/profile/testdata/cppbench.cpu -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/google/pprof/profile/testdata/go.crc32.cpu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/vendor/github.com/google/pprof/profile/testdata/go.crc32.cpu -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/google/pprof/profile/testdata/gobench.cpu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/vendor/github.com/google/pprof/profile/testdata/gobench.cpu -------------------------------------------------------------------------------- /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/cmd/go/testdata/src/cgocover2/x_test.go: -------------------------------------------------------------------------------- 1 | package p_test 2 | 3 | import ( 4 | . "cgocover2" 5 | "testing" 6 | ) 7 | 8 | func TestF(t *testing.T) { 9 | F() 10 | } 11 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/cgocover3/x_test.go: -------------------------------------------------------------------------------- 1 | package p_test 2 | 3 | import ( 4 | . "cgocover3" 5 | "testing" 6 | ) 7 | 8 | func TestF(t *testing.T) { 9 | F() 10 | } 11 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/cgocover4/x_test.go: -------------------------------------------------------------------------------- 1 | package p_test 2 | 3 | import ( 4 | . "cgocover4" 5 | "testing" 6 | ) 7 | 8 | func TestF(t *testing.T) { 9 | F() 10 | } 11 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/testcycle/p3/p3_test.go: -------------------------------------------------------------------------------- 1 | package p3 2 | 3 | import ( 4 | "testing" 5 | 6 | _ "testcycle/p1" 7 | ) 8 | 9 | func Test(t *testing.T) { 10 | } 11 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/standalone_sub_test.go: -------------------------------------------------------------------------------- 1 | package standalone_sub_test 2 | 3 | import "testing" 4 | 5 | func Test(t *testing.T) { 6 | t.Run("Sub", func(t *testing.T) {}) 7 | } 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/image/testdata/video-001.separate.dc.progression.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/image/testdata/video-001.separate.dc.progression.progressive.jpeg -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/cmd/go/internal/modfile/testdata/comment.in: -------------------------------------------------------------------------------- 1 | // comment 2 | module "x" // eol 3 | // mid comment 4 | 5 | // comment 2 6 | // comment 2 line 2 7 | module "y" // eoy 8 | // comment 3 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/run_hello.txt: -------------------------------------------------------------------------------- 1 | # hello world 2 | go run hello.go 3 | stderr 'hello world' 4 | 5 | -- hello.go -- 6 | package main 7 | func main() { println("hello world") } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/test_compile_binary.txt: -------------------------------------------------------------------------------- 1 | ! go test -c compile_binary/... 2 | stderr 'build comment' 3 | 4 | -- compile_binary/foo_test.go -- 5 | //+build foo 6 | package foo 7 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/main_test/m_test.go: -------------------------------------------------------------------------------- 1 | package main_test 2 | 3 | import ( 4 | . "main_test" 5 | "testing" 6 | ) 7 | 8 | func Test1(t *testing.T) { 9 | F() 10 | } 11 | -------------------------------------------------------------------------------- /misc/cgo/test/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 | -------------------------------------------------------------------------------- /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/script/list_tags.txt: -------------------------------------------------------------------------------- 1 | # go list supports -tags 2 | go list -tags=thetag ./my... 3 | stdout mypkg 4 | 5 | -- mypkg/x.go -- 6 | // +build thetag 7 | 8 | package mypkg 9 | -------------------------------------------------------------------------------- /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/go/testdata/src/benchfatal/x_test.go: -------------------------------------------------------------------------------- 1 | package benchfatal 2 | 3 | import "testing" 4 | 5 | func BenchmarkThatCallsFatal(b *testing.B) { 6 | b.Fatal("called by benchmark") 7 | } 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/coverdep2/p1/p_test.go: -------------------------------------------------------------------------------- 1 | package p1_test 2 | 3 | import ( 4 | "coverdep2/p2" 5 | "testing" 6 | ) 7 | 8 | func Test(t *testing.T) { 9 | p2.F() 10 | } 11 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vend/x/x.go: -------------------------------------------------------------------------------- 1 | package x 2 | 3 | import _ "p" 4 | import _ "q" 5 | import _ "r" 6 | import _ "vend/dir1" // not vendored 7 | import _ "vend/dir1/dir2" // vendored 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vetfail/p1/p1.go: -------------------------------------------------------------------------------- 1 | // +build !foo-bar 2 | 3 | package p1 4 | 5 | import "fmt" 6 | 7 | func F() { 8 | fmt.Printf("%d", "hello") // causes vet error 9 | } 10 | -------------------------------------------------------------------------------- /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/cmd/vendor/github.com/google/pprof/internal/binutils/testdata/exe_mac_64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/vendor/github.com/google/pprof/internal/binutils/testdata/exe_mac_64 -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/google/pprof/internal/binutils/testdata/lib_mac_64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/vendor/github.com/google/pprof/internal/binutils/testdata/lib_mac_64 -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/google/pprof/internal/driver/testdata/cppbench.cpu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/vendor/github.com/google/pprof/internal/driver/testdata/cppbench.cpu -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/google/pprof/internal/driver/testdata/go.crc32.cpu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/vendor/github.com/google/pprof/internal/driver/testdata/go.crc32.cpu -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/google/pprof/internal/report/testdata/sample.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/vendor/github.com/google/pprof/internal/report/testdata/sample.bin -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/google/pprof/internal/report/testdata/sample.cpu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/vendor/github.com/google/pprof/internal/report/testdata/sample.cpu -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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_with_git_trace.txt: -------------------------------------------------------------------------------- 1 | env GIT_TRACE=1 2 | 3 | [!net] skip 4 | [!exec:git] skip 5 | 6 | # go get should be success when GIT_TRACE set 7 | go get golang.org/x/text 8 | -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/google/pprof/internal/binutils/testdata/exe_linux_64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/vendor/github.com/google/pprof/internal/binutils/testdata/exe_linux_64 -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/google/pprof/internal/driver/testdata/pprof.heap.flat.files.seconds.text: -------------------------------------------------------------------------------- 1 | Showing nodes accounting for 0, 0% of 0 total 2 | flat flat% sum% cum cum% 3 | -------------------------------------------------------------------------------- /src/cmd/vet/all/whitelist/plan9_386.txt: -------------------------------------------------------------------------------- 1 | // plan9/386-specific vet whitelist. See readme.txt for details. 2 | 3 | runtime/sys_plan9_386.s: [386] setldt: function setldt missing Go declaration 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/sleepy1/p_test.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import ( 4 | "testing" 5 | "time" 6 | ) 7 | 8 | func Test1(t *testing.T) { 9 | time.Sleep(200 * time.Millisecond) 10 | } 11 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/sleepy2/p_test.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import ( 4 | "testing" 5 | "time" 6 | ) 7 | 8 | func Test1(t *testing.T) { 9 | time.Sleep(200 * time.Millisecond) 10 | } 11 | -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/google/pprof/internal/binutils/testdata/malformed_elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/vendor/github.com/google/pprof/internal/binutils/testdata/malformed_elf -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/google/pprof/internal/binutils/testdata/malformed_macho: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/vendor/github.com/google/pprof/internal/binutils/testdata/malformed_macho -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/06dfecf6e5dfb78e954e7892120b56bfca50af65-6.bad: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/traceparser/testdata/06dfecf6e5dfb78e954e7892120b56bfca50af65-6.bad -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/0e6dd1787a6339366dac733a2f957a05d7aa3ac7-3.bad: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/traceparser/testdata/0e6dd1787a6339366dac733a2f957a05d7aa3ac7-3.bad -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/2ccf452e473ded814ea880c602488637fc27e549.good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/traceparser/testdata/2ccf452e473ded814ea880c602488637fc27e549.good -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/4557f81f6aae617eeec8dd920997ea27b3dda12b.weird: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/traceparser/testdata/4557f81f6aae617eeec8dd920997ea27b3dda12b.weird -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/6aa1a69b265c3092972a2a81e77fbcaa87061735-4.bad: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/traceparser/testdata/6aa1a69b265c3092972a2a81e77fbcaa87061735-4.bad -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/7b82e808a6a3471352a4197d44fedbe3f5fb6f77-1.bad: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/traceparser/testdata/7b82e808a6a3471352a4197d44fedbe3f5fb6f77-1.bad -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /misc/cgo/testshared/src/implicitcmd/implicitcmd.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "explicit" 5 | "implicit" 6 | ) 7 | 8 | func main() { 9 | println(implicit.I() + explicit.E()) 10 | } 11 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/local/sub/sub.go: -------------------------------------------------------------------------------- 1 | package sub 2 | 3 | import ( 4 | "fmt" 5 | 6 | subsub "./sub" 7 | ) 8 | 9 | func Hello() { 10 | fmt.Println("sub.Hello") 11 | subsub.Hello() 12 | } 13 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testonly2/t.go: -------------------------------------------------------------------------------- 1 | // This package is not a test-only package, 2 | // but it still matches the pattern ./testdata/testonly... when in cmd/go. 3 | 4 | package main 5 | 6 | func main() {} 7 | -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/google/pprof/internal/driver/testdata/go.nomappings.crash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/cmd/vendor/github.com/google/pprof/internal/driver/testdata/go.nomappings.crash -------------------------------------------------------------------------------- /src/cmd/vet/all/whitelist/android_amd64.txt: -------------------------------------------------------------------------------- 1 | // android/amd64-specific vet whitelist. See readme.txt for details. 2 | 3 | runtime/sys_linux_amd64.s: [amd64] settls: function settls missing Go declaration 4 | -------------------------------------------------------------------------------- /src/cmd/vet/all/whitelist/darwin_amd64.txt: -------------------------------------------------------------------------------- 1 | // darwin/amd64-specific vet whitelist. See readme.txt for details. 2 | 3 | runtime/sys_darwin_amd64.s: [amd64] settls: function settls missing Go declaration 4 | -------------------------------------------------------------------------------- /src/cmd/vet/all/whitelist/darwin_arm64.txt: -------------------------------------------------------------------------------- 1 | // darwin/arm64-specific vet whitelist. See readme.txt for details. 2 | 3 | runtime/asm_arm64.s: [arm64] sigreturn: function sigreturn missing Go declaration 4 | -------------------------------------------------------------------------------- /src/cmd/vet/all/whitelist/netbsd_amd64.txt: -------------------------------------------------------------------------------- 1 | // netbsd/amd64-specific vet whitelist. See readme.txt for details. 2 | 3 | runtime/sys_netbsd_amd64.s: [amd64] settls: function settls missing Go declaration 4 | -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/16970d24ef6753d71953e20d10638705bdccc3ba-2.weird: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/traceparser/testdata/16970d24ef6753d71953e20d10638705bdccc3ba-2.weird -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/26492441b33e1bb93669f79cf3584755cc3ef7e8-2.weird: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/traceparser/testdata/26492441b33e1bb93669f79cf3584755cc3ef7e8-2.weird -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/34f92cd2ae08f558c494b2ef79e80b574c9f096c-8.weird: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/traceparser/testdata/34f92cd2ae08f558c494b2ef79e80b574c9f096c-8.weird -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/63df44bfc9d27851fb054ce03002e7e25f307e2f-5.weird: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/traceparser/testdata/63df44bfc9d27851fb054ce03002e7e25f307e2f-5.weird -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/94347dc6ca9c22daec04c5f2530b16ea60bb0ba2-7.weird: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/traceparser/testdata/94347dc6ca9c22daec04c5f2530b16ea60bb0ba2-7.weird -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/9fa93c88557e64b0714b8849aacf713d17ff928e-2.weird: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/traceparser/testdata/9fa93c88557e64b0714b8849aacf713d17ff928e-2.weird -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/abf7185aaf1cb69fb5fae50ba8546a7cdefade57-2.weird: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/traceparser/testdata/abf7185aaf1cb69fb5fae50ba8546a7cdefade57-2.weird -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/d28fcef078c7dc722867d781b1fd7f37ca965372-7.weird: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/traceparser/testdata/d28fcef078c7dc722867d781b1fd7f37ca965372-7.weird -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/d70f178a3813df03f2aed0d47f6d9bc844b8cb57-4.weird: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/traceparser/testdata/d70f178a3813df03f2aed0d47f6d9bc844b8cb57-4.weird -------------------------------------------------------------------------------- /src/internal/traceparser/testdata/e68c3126700dda2c2ac3b8743e9f319cb313042a-1.weird: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ry/go/HEAD/src/internal/traceparser/testdata/e68c3126700dda2c2ac3b8743e9f319cb313042a-1.weird -------------------------------------------------------------------------------- /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/internal/imports/testdata/import1/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/go/internal/modfile/testdata/comment.golden: -------------------------------------------------------------------------------- 1 | // comment 2 | module "x" // eol 3 | 4 | // mid comment 5 | 6 | // comment 2 7 | // comment 2 line 2 8 | module "y" // eoy 9 | 10 | // comment 3 11 | -------------------------------------------------------------------------------- /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/go/testdata/src/testlist/test_test.go: -------------------------------------------------------------------------------- 1 | package testlist 2 | 3 | import ( 4 | "fmt" 5 | "testing" 6 | ) 7 | 8 | func TestSimple(t *testing.T) { 9 | _ = fmt.Sprint("Test simple") 10 | } 11 | -------------------------------------------------------------------------------- /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/cmd/vet/all/whitelist/darwin_386.txt: -------------------------------------------------------------------------------- 1 | // darwin/386-specific vet whitelist. See readme.txt for details. 2 | 3 | // Ok 4 | 5 | runtime/sys_darwin_386.s: [386] setldt: function setldt missing Go declaration 6 | -------------------------------------------------------------------------------- /src/cmd/vet/all/whitelist/darwin_arm.txt: -------------------------------------------------------------------------------- 1 | // darwin/arm-specific vet whitelist. See readme.txt for details. 2 | 3 | // Ok. 4 | 5 | runtime/asm_arm.s: [arm] sigreturn: function sigreturn missing Go declaration 6 | -------------------------------------------------------------------------------- /src/cmd/vet/all/whitelist/openbsd_amd64.txt: -------------------------------------------------------------------------------- 1 | // openbsd/amd64-specific vet whitelist. See readme.txt for details. 2 | 3 | runtime/sys_openbsd_amd64.s: [amd64] settls: function settls missing Go declaration 4 | -------------------------------------------------------------------------------- /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/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/src/vend/hello/hello.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "strings" // really ../vendor/strings 6 | ) 7 | 8 | func main() { 9 | fmt.Printf("%s\n", strings.Msg) 10 | } 11 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/standalone_fail_sub_test.go: -------------------------------------------------------------------------------- 1 | package standalone_fail_sub_test 2 | 3 | import "testing" 4 | 5 | func TestThatFails(t *testing.T) { 6 | t.Run("Sub", func(t *testing.T) {}) 7 | t.Fail() 8 | } 9 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testimport/p_test.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | import ( 4 | "./p1" 5 | 6 | "testing" 7 | ) 8 | 9 | func TestF(t *testing.T) { 10 | if F() != p1.F() { 11 | t.Fatal(F()) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/timeoutbench_test.go: -------------------------------------------------------------------------------- 1 | package timeoutbench_test 2 | 3 | import ( 4 | "testing" 5 | "time" 6 | ) 7 | 8 | func BenchmarkSleep1s(b *testing.B) { 9 | time.Sleep(1 * time.Second) 10 | } 11 | -------------------------------------------------------------------------------- /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/cmd/vet/all/whitelist/netbsd.txt: -------------------------------------------------------------------------------- 1 | // netbsd-specific vet whitelist. See readme.txt for details. 2 | 3 | runtime/sys_netbsd_ARCHSUFF.s: [GOARCH] sigreturn_tramp: function sigreturn_tramp missing Go declaration 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/link/internal/ld/testdata/issue25459/src/main/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "a" 4 | 5 | var Glob int 6 | 7 | func main() { 8 | a.Another() 9 | Glob += a.ConstIf() + a.CallConstIf() 10 | } 11 | -------------------------------------------------------------------------------- /src/cmd/vendor/github.com/google/pprof/internal/driver/testdata/pprof.cpu.tags.focus.ignore: -------------------------------------------------------------------------------- 1 | key1: Total 100.0ms 2 | 100.0ms ( 100%): tag2 3 | 4 | key3: Total 100.0ms 5 | 100.0ms ( 100%): tag2 6 | 7 | -------------------------------------------------------------------------------- /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/compile/internal/ssa/testdata/i22558.gdb-dbg.nexts: -------------------------------------------------------------------------------- 1 | src/cmd/compile/internal/ssa/testdata/i22558.go 2 | 19: func test(t *thing, u *thing) { 3 | 20: if t.next != nil { 4 | 23: fmt.Fprintf(os.Stderr, "%s\n", t.name) 5 | -------------------------------------------------------------------------------- /src/cmd/objdump/testdata/fmthello.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "fmt" 4 | 5 | func main() { 6 | Println("hello, world") 7 | } 8 | 9 | //go:noinline 10 | func Println(s string) { 11 | fmt.Println(s) 12 | } 13 | -------------------------------------------------------------------------------- /src/math/asin_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "asin_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/atan_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "atan_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/dim_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "dim_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/exp2_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "exp2_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/exp_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "exp_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/log_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "log_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/mod_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "mod_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/modf_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "modf_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/sin_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "sin_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/sqrt_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "sqrt_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/tan_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "tan_amd64.s" 6 | -------------------------------------------------------------------------------- /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/test/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/go/testdata/norunexample/test_test.go: -------------------------------------------------------------------------------- 1 | package pkg 2 | 3 | import ( 4 | "os" 5 | "testing" 6 | ) 7 | 8 | func TestBuilt(t *testing.T) { 9 | os.Stdout.Write([]byte("A normal test was executed.\n")) 10 | } 11 | -------------------------------------------------------------------------------- /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/math/atan2_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "atan2_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/expm1_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "expm1_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/floor_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "floor_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/frexp_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "frexp_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/hypot_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "hypot_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/ldexp_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "ldexp_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/log10_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "log10_amd64.s" 6 | -------------------------------------------------------------------------------- /src/math/log1p_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "log1p_amd64.s" 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /misc/cgo/test/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/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_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/mod_convert_dep.txt: -------------------------------------------------------------------------------- 1 | env GO111MODULE=on 2 | 3 | cd $WORK/test/x 4 | go list -m all 5 | stdout '^m$' 6 | 7 | -- $WORK/test/Gopkg.lock -- 8 | -- $WORK/test/x/x.go -- 9 | package x // import "m/x" 10 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/mod_convert_glide.txt: -------------------------------------------------------------------------------- 1 | env GO111MODULE=on 2 | 3 | cd $WORK/test/x 4 | go list -m all 5 | stdout '^m$' 6 | 7 | -- $WORK/test/glide.lock -- 8 | -- $WORK/test/x/x.go -- 9 | package x // import "m/x" 10 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/cgocover/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | /* 4 | void 5 | f(void) 6 | { 7 | } 8 | */ 9 | import "C" 10 | 11 | var b bool 12 | 13 | func F() { 14 | if b { 15 | for { 16 | } 17 | } 18 | C.f() 19 | } 20 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/cgocover2/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | /* 4 | void 5 | f(void) 6 | { 7 | } 8 | */ 9 | import "C" 10 | 11 | var b bool 12 | 13 | func F() { 14 | if b { 15 | for { 16 | } 17 | } 18 | C.f() 19 | } 20 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/cgocover3/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | /* 4 | void 5 | f(void) 6 | { 7 | } 8 | */ 9 | import "C" 10 | 11 | var b bool 12 | 13 | func F() { 14 | if b { 15 | for { 16 | } 17 | } 18 | C.f() 19 | } 20 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/cgocover4/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | 3 | /* 4 | void 5 | f(void) 6 | { 7 | } 8 | */ 9 | import "C" 10 | 11 | var b bool 12 | 13 | func F() { 14 | if b { 15 | for { 16 | } 17 | } 18 | C.f() 19 | } 20 | -------------------------------------------------------------------------------- /src/math/remainder_amd64p32.s: -------------------------------------------------------------------------------- 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 | #include "remainder_amd64.s" 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/fileline.txt: -------------------------------------------------------------------------------- 1 | # look for short, relative file:line in error message 2 | ! go run ../../gopath/x/y/z/err.go 3 | stderr ^..[\\/]x[\\/]y[\\/]z[\\/]err.go: 4 | 5 | -- ../x/y/z/err.go -- 6 | package main; import "bar" 7 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/mod_convert_glockfile.txt: -------------------------------------------------------------------------------- 1 | env GO111MODULE=on 2 | 3 | cd $WORK/test/x 4 | go list -m all 5 | stdout '^m$' 6 | 7 | -- $WORK/test/GLOCKFILE -- 8 | -- $WORK/test/x/x.go -- 9 | package x // import "m/x" 10 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/mod_convert_tsv.txt: -------------------------------------------------------------------------------- 1 | env GO111MODULE=on 2 | 3 | cd $WORK/test/x 4 | go list -m all 5 | stdout '^m$' 6 | 7 | -- $WORK/test/dependencies.tsv -- 8 | -- $WORK/test/x/x.go -- 9 | package x // import "m/x" 10 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/mod_convert_vendor_yml.txt: -------------------------------------------------------------------------------- 1 | env GO111MODULE=on 2 | 3 | cd $WORK/test/x 4 | go list -m all 5 | stdout '^m$' 6 | 7 | -- $WORK/test/vendor.yml -- 8 | -- $WORK/test/x/x.go -- 9 | package x // import "m/x" 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/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/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 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/script/mod_convert_vendor_conf.txt: -------------------------------------------------------------------------------- 1 | env GO111MODULE=on 2 | 3 | cd $WORK/test/x 4 | go list -m all 5 | stdout '^m$' 6 | 7 | -- $WORK/test/vendor.conf -- 8 | -- $WORK/test/x/x.go -- 9 | package x // import "m/x" 10 | -------------------------------------------------------------------------------- /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/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 | --------------------------------------------------------------------------------