├── api └── next.txt ├── misc ├── nacl │ ├── testdata │ │ ├── empty │ │ ├── bin │ │ │ └── placeholder │ │ ├── hosts │ │ └── group │ ├── go_nacl_386_exec │ └── go_nacl_amd64p32_exec ├── cgo │ ├── stdio │ │ └── hello.out │ ├── testshared │ │ └── src │ │ │ ├── trivial │ │ │ └── trivial.go │ │ │ ├── implicit │ │ │ └── implicit.go │ │ │ ├── depBase │ │ │ ├── stubs.go │ │ │ └── gccgo.go │ │ │ ├── execgo │ │ │ └── exe.go │ │ │ ├── exe3 │ │ │ └── exe3.go │ │ │ ├── exe2 │ │ │ └── exe2.go │ │ │ ├── explicit │ │ │ └── explicit.go │ │ │ ├── implicitcmd │ │ │ └── implicitcmd.go │ │ │ └── dep2 │ │ │ └── dep2.go │ ├── test │ │ ├── issue8828 │ │ │ ├── trivial.go │ │ │ └── issue8828.c │ │ ├── issue9026.go │ │ ├── issue8756 │ │ │ └── issue8756.go │ │ ├── issue4339.h │ │ ├── gcc68255 │ │ │ ├── c.h │ │ │ └── c.c │ │ ├── issue8331.h │ │ ├── issue8811.c │ │ ├── issue8756.go │ │ ├── issue5740a.c │ │ ├── issue5740b.c │ │ ├── issue9400 │ │ │ └── stubs.go │ │ └── issue13402.go │ ├── fortran │ │ └── helloworld │ │ │ └── helloworld.f90 │ ├── testsovar │ │ └── cgoso_c.c │ └── testplugin │ │ └── src │ │ └── common │ │ └── common.go ├── chrome │ └── gophertool │ │ ├── gopher.png │ │ └── README.txt ├── benchcmp └── editors ├── src ├── go │ ├── build │ │ └── testdata │ │ │ ├── empty │ │ │ └── dummy │ │ │ ├── ignored │ │ │ └── ignored.go │ │ │ ├── multi │ │ │ ├── file.go │ │ │ └── file_appengine.go │ │ │ └── other │ │ │ ├── file │ │ │ └── file.go │ │ │ └── main.go │ ├── internal │ │ ├── gccgoimporter │ │ │ └── testdata │ │ │ │ ├── pointer.go │ │ │ │ ├── conversions.go │ │ │ │ ├── imports.go │ │ │ │ ├── pointer.gox │ │ │ │ ├── complexnums.go │ │ │ │ ├── conversions.gox │ │ │ │ └── complexnums.gox │ │ └── gcimporter │ │ │ └── testdata │ │ │ └── versions │ │ │ ├── test_go1.7_0.a │ │ │ └── test_go1.7_1.a │ ├── doc │ │ ├── testdata │ │ │ ├── bugpara.go │ │ │ ├── issue17788.0.golden │ │ │ ├── issue17788.1.golden │ │ │ ├── issue17788.2.golden │ │ │ ├── predeclared.0.golden │ │ │ ├── predeclared.2.golden │ │ │ ├── issue17788.go │ │ │ ├── f.0.golden │ │ │ └── f.2.golden │ │ └── Makefile │ ├── printer │ │ └── testdata │ │ │ ├── empty.golden │ │ │ └── empty.input │ └── types │ │ └── testdata │ │ ├── blank.src │ │ └── importdecl1b.src ├── archive │ ├── tar │ │ └── testdata │ │ │ ├── small.txt │ │ │ ├── small2.txt │ │ │ ├── v7.tar │ │ │ ├── neg-size.tar │ │ │ ├── issue10968.tar │ │ │ ├── issue12435.tar │ │ │ ├── writer-big.tar │ │ │ └── writer-big-long.tar │ └── zip │ │ └── testdata │ │ ├── dd.zip │ │ ├── test.zip │ │ ├── unix.zip │ │ ├── winxp.zip │ │ ├── zip64.zip │ │ ├── readme.zip │ │ ├── symlink.zip │ │ ├── zip64-2.zip │ │ ├── readme.notzip │ │ ├── extra-timestamp.zip │ │ ├── crc32-not-streamed.zip │ │ ├── go-no-datadesc-sig.zip │ │ ├── gophercolor16x16.png │ │ ├── test-trailing-junk.zip │ │ └── go-with-datadesc-sig.zip ├── net │ ├── http │ │ ├── testdata │ │ │ ├── file │ │ │ ├── style.css │ │ │ └── index.html │ │ └── race.go │ └── 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 ├── cmd │ ├── go │ │ └── testdata │ │ │ ├── rundir │ │ │ ├── x.go │ │ │ └── sub │ │ │ │ └── sub.go │ │ │ ├── src │ │ │ ├── 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 │ │ │ ├── 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 │ │ │ │ │ └── hello_test.go │ │ │ ├── badtest │ │ │ │ ├── badvar │ │ │ │ │ ├── x.go │ │ │ │ │ └── x_test.go │ │ │ │ ├── badsyntax │ │ │ │ │ ├── x.go │ │ │ │ │ └── x_test.go │ │ │ │ └── badexec │ │ │ │ │ └── x_test.go │ │ │ ├── canonical │ │ │ │ ├── a │ │ │ │ │ ├── vendor │ │ │ │ │ │ └── c │ │ │ │ │ │ │ └── c.go │ │ │ │ │ └── a.go │ │ │ │ ├── b │ │ │ │ │ └── b.go │ │ │ │ └── d │ │ │ │ │ └── d.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 │ │ │ ├── my.pkg │ │ │ │ ├── pkg.go │ │ │ │ └── main │ │ │ │ │ └── main.go │ │ │ ├── cgotest │ │ │ │ └── m.go │ │ │ ├── main_test │ │ │ │ ├── m.go │ │ │ │ └── m_test.go │ │ │ ├── xtestonly │ │ │ │ ├── f.go │ │ │ │ └── f_test.go │ │ │ ├── go-cmd-test │ │ │ │ └── helloworld.go │ │ │ ├── cgocover │ │ │ │ ├── p_test.go │ │ │ │ └── p.go │ │ │ ├── notest │ │ │ │ └── hello.go │ │ │ ├── gencycle │ │ │ │ └── gencycle.go │ │ │ ├── cgocover2 │ │ │ │ ├── x_test.go │ │ │ │ └── p.go │ │ │ └── benchfatal │ │ │ │ └── x_test.go │ │ │ ├── testonly │ │ │ └── p_test.go │ │ │ ├── failssh │ │ │ └── ssh │ │ │ ├── shadow │ │ │ ├── root1 │ │ │ │ └── src │ │ │ │ │ ├── foo │ │ │ │ │ └── foo.go │ │ │ │ │ └── math │ │ │ │ │ └── math.go │ │ │ └── root2 │ │ │ │ └── src │ │ │ │ └── foo │ │ │ │ └── foo.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 │ │ │ └── x_test.go │ │ │ ├── testinternal │ │ │ └── p.go │ │ │ ├── testinternal3 │ │ │ └── t.go │ │ │ ├── local │ │ │ ├── hard.go │ │ │ ├── easy.go │ │ │ ├── sub │ │ │ │ ├── sub │ │ │ │ │ └── subsub.go │ │ │ │ └── sub.go │ │ │ └── easysub │ │ │ │ ├── easysub.go │ │ │ │ └── main.go │ │ │ ├── standalone_test.go │ │ │ ├── standalone_benchmark_test.go │ │ │ ├── standalone_sub_test.go │ │ │ ├── standalone_fail_sub_test.go │ │ │ ├── norunexample │ │ │ ├── test_test.go │ │ │ └── example_test.go │ │ │ └── dep_test.go │ ├── compile │ │ └── internal │ │ │ └── test │ │ │ ├── test.go │ │ │ └── README │ ├── vet │ │ ├── testdata │ │ │ ├── testingpkg │ │ │ │ └── tests.go │ │ │ └── tagtest │ │ │ │ ├── file1.go │ │ │ │ └── file2.go │ │ └── all │ │ │ └── whitelist │ │ │ ├── plan9_386.txt │ │ │ ├── android_amd64.txt │ │ │ ├── netbsd_amd64.txt │ │ │ ├── openbsd_amd64.txt │ │ │ ├── netbsd.txt │ │ │ ├── plan9_amd64.txt │ │ │ ├── plan9_arm.txt │ │ │ ├── freebsd_arm.txt │ │ │ ├── openbsd_arm.txt │ │ │ └── darwin_amd64.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 │ │ │ ├── emptydecl.golden │ │ │ └── emptydecl.input │ ├── objdump │ │ └── testdata │ │ │ └── fmthello.go │ ├── api │ │ └── testdata │ │ │ └── src │ │ │ └── pkg │ │ │ ├── p3 │ │ │ ├── p3.go │ │ │ └── golden.txt │ │ │ └── p2 │ │ │ ├── p2.go │ │ │ └── golden.txt │ ├── vendor │ │ └── golang.org │ │ │ └── x │ │ │ └── arch │ │ │ ├── arm │ │ │ └── armasm │ │ │ │ └── Makefile │ │ │ └── x86 │ │ │ └── x86asm │ │ │ └── Makefile │ └── dist │ │ └── sys_default.go ├── compress │ ├── flate │ │ └── testdata │ │ │ ├── huffman-zero.wb.expect │ │ │ ├── huffman-zero.wb.expect-noinput │ │ │ ├── huffman-pi.golden │ │ │ ├── huffman-rand-1k.in │ │ │ ├── huffman-rand-max.in │ │ │ ├── huffman-text.golden │ │ │ ├── huffman-zero.golden │ │ │ ├── huffman-pi.dyn.expect │ │ │ ├── huffman-pi.wb.expect │ │ │ ├── huffman-rand-limit.in │ │ │ ├── huffman-shifts.golden │ │ │ ├── huffman-null-max.golden │ │ │ ├── huffman-rand-1k.golden │ │ │ ├── huffman-rand-max.golden │ │ │ ├── huffman-shifts.wb.expect │ │ │ ├── huffman-text.dyn.expect │ │ │ ├── huffman-text.wb.expect │ │ │ ├── huffman-zero.dyn.expect │ │ │ ├── huffman-null-max.wb.expect │ │ │ ├── huffman-rand-1k.dyn.expect │ │ │ ├── huffman-rand-1k.wb.expect │ │ │ ├── huffman-rand-limit.golden │ │ │ ├── huffman-shifts.dyn.expect │ │ │ ├── huffman-text-shift.golden │ │ │ ├── huffman-null-max.dyn.expect │ │ │ ├── huffman-pi.dyn.expect-noinput │ │ │ ├── huffman-pi.wb.expect-noinput │ │ │ ├── huffman-rand-limit.dyn.expect │ │ │ ├── huffman-rand-limit.wb.expect │ │ │ ├── huffman-text-shift.dyn.expect │ │ │ ├── huffman-text-shift.wb.expect │ │ │ ├── huffman-text.dyn.expect-noinput │ │ │ ├── huffman-text.wb.expect-noinput │ │ │ ├── huffman-zero.dyn.expect-noinput │ │ │ ├── huffman-null-max.wb.expect-noinput │ │ │ ├── huffman-rand-1k.dyn.expect-noinput │ │ │ ├── huffman-rand-1k.wb.expect-noinput │ │ │ ├── huffman-shifts.dyn.expect-noinput │ │ │ ├── huffman-shifts.wb.expect-noinput │ │ │ ├── null-long-match.dyn.expect-noinput │ │ │ ├── null-long-match.wb.expect-noinput │ │ │ ├── huffman-null-max.dyn.expect-noinput │ │ │ ├── huffman-rand-limit.wb.expect-noinput │ │ │ ├── huffman-text-shift.wb.expect-noinput │ │ │ ├── huffman-rand-limit.dyn.expect-noinput │ │ │ └── huffman-text-shift.dyn.expect-noinput │ ├── bzip2 │ │ └── testdata │ │ │ ├── e.txt.bz2 │ │ │ ├── pass-random1.bin │ │ │ ├── pass-random1.bz2 │ │ │ ├── pass-random2.bin │ │ │ ├── pass-random2.bz2 │ │ │ ├── random.data.bz2 │ │ │ ├── fail-issue5747.bz2 │ │ │ ├── pass-sawtooth.bz2 │ │ │ └── Mark.Twain-Tom.Sawyer.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 │ ├── asm.s │ └── endian_big.go ├── text │ └── template │ │ └── testdata │ │ ├── file1.tmpl │ │ ├── tmpl1.tmpl │ │ ├── tmpl2.tmpl │ │ └── file2.tmpl ├── debug │ ├── dwarf │ │ └── testdata │ │ │ ├── line2.c │ │ │ ├── split.c │ │ │ ├── cycle.elf │ │ │ ├── split.elf │ │ │ ├── line-gcc.elf │ │ │ ├── ranges.elf │ │ │ ├── typedef.elf │ │ │ ├── typedef.elf4 │ │ │ ├── line-clang.elf │ │ │ ├── typedef.macho │ │ │ ├── line1.c │ │ │ ├── line1.h │ │ │ └── cycle.c │ ├── pe │ │ └── testdata │ │ │ ├── gcc-386-mingw-obj │ │ │ ├── gcc-386-mingw-exec │ │ │ ├── gcc-amd64-mingw-exec │ │ │ ├── gcc-amd64-mingw-obj │ │ │ ├── hello.c │ │ │ └── gcc-386-mingw-no-symbols-exec │ ├── elf │ │ └── testdata │ │ │ ├── compressed-32.obj │ │ │ ├── compressed-64.obj │ │ │ ├── hello-world-core.gz │ │ │ ├── gcc-386-freebsd-exec │ │ │ ├── gcc-amd64-linux-exec │ │ │ ├── hello.c │ │ │ ├── zdebug-test-gcc484-x86-64.obj │ │ │ ├── go-relocation-test-gcc5-ppc.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-gcc540-mips.obj │ │ │ ├── go-relocation-test-gcc424-x86-64.obj │ │ │ ├── go-relocation-test-gcc441-x86-64.obj │ │ │ ├── go-relocation-test-gcc492-mips64.obj │ │ │ ├── go-relocation-test-gcc492-mipsle.obj │ │ │ ├── go-relocation-test-gcc531-s390x.obj │ │ │ ├── gcc-amd64-openbsd-debug-with-rela.obj │ │ │ ├── go-relocation-test-gcc482-aarch64.obj │ │ │ ├── go-relocation-test-gcc482-ppc64le.obj │ │ │ ├── go-relocation-test-gcc493-mips64le.obj │ │ │ └── go-relocation-test-gcc620-sparc64.obj │ ├── plan9obj │ │ └── testdata │ │ │ ├── 386-plan9-exec │ │ │ ├── amd64-plan9-exec │ │ │ └── hello.c │ ├── macho │ │ └── testdata │ │ │ ├── gcc-386-darwin-exec │ │ │ ├── gcc-amd64-darwin-exec │ │ │ ├── hello.c │ │ │ ├── gcc-amd64-darwin-exec-debug │ │ │ └── fat-gcc-386-amd64-darwin-exec │ └── gosym │ │ └── pclinetest.h ├── image │ ├── testdata │ │ ├── video-001.gif │ │ ├── video-001.png │ │ ├── video-001.jpeg │ │ ├── video-001.5bpp.gif │ │ ├── video-001.cmyk.png │ │ ├── video-001.rgb.jpeg │ │ ├── video-001.rgb.png │ │ ├── video-005.gray.gif │ │ ├── video-005.gray.png │ │ ├── video-001.221212.png │ │ ├── video-001.cmyk.jpeg │ │ ├── video-005.gray.jpeg │ │ ├── video-001.221212.jpeg │ │ ├── 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-005.gray.q50.jpeg │ │ ├── video-001.interlaced.gif │ │ ├── video-001.progressive.jpeg │ │ ├── video-005.gray.q50.2x2.jpeg │ │ ├── video-001.progressive.truncated.png │ │ ├── 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-005.gray.q50.progressive.jpeg │ │ ├── video-001.progressive.truncated.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 │ │ ├── invalid-zlib.png │ │ ├── benchPaletted.png │ │ ├── gray-gradient.png │ │ ├── invalid-crc32.png │ │ ├── invalid-noend.png │ │ ├── invalid-trunc.png │ │ ├── benchNRGBA-opaque.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 │ │ ├── basn0g01-30.png │ │ ├── basn0g02-29.png │ │ ├── basn0g04-31.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 │ │ ├── basn3p04-31i.png │ │ └── basn3p08-trns.png │ │ ├── benchNRGBA-gradient.png │ │ ├── benchRGB-interlace.png │ │ └── gray-gradient.interlaced.png ├── encoding │ └── json │ │ └── testdata │ │ └── code.json.gz ├── runtime │ ├── race │ │ ├── race_darwin_amd64.syso │ │ ├── race_linux_amd64.syso │ │ ├── race_freebsd_amd64.syso │ │ └── race_windows_amd64.syso │ ├── zcallback_windows.go │ ├── Makefile │ └── export_arm_test.go ├── crypto │ ├── ecdsa │ │ └── testdata │ │ │ └── SigVer.rsp.bz2 │ └── rsa │ │ └── testdata │ │ └── pss-vect.txt.bz2 ├── internal │ └── trace │ │ └── testdata │ │ ├── http_1_5_good │ │ ├── http_1_7_good │ │ ├── stress_1_5_good │ │ ├── stress_1_7_good │ │ ├── stress_1_5_unordered │ │ ├── stress_start_stop_1_5_good │ │ └── stress_start_stop_1_7_good ├── regexp │ └── testdata │ │ └── re2-exhaustive.txt.bz2 ├── path │ └── filepath │ │ ├── symlink_unix.go │ │ └── export_test.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 │ ├── sincos_amd64p32.s │ ├── remainder_amd64p32.s │ ├── atan_arm.s │ ├── exp2_arm.s │ ├── exp_arm.s │ ├── log_arm.s │ ├── mod_arm.s │ ├── modf_arm.s │ ├── tan_arm.s │ ├── atan2_arm.s │ ├── atan_amd64.s │ ├── exp2_amd64.s │ ├── expm1_arm.s │ ├── frexp_arm.s │ ├── hypot_arm.s │ ├── ldexp_arm.s │ ├── log1p_arm.s │ ├── mod_amd64.s │ ├── modf_amd64.s │ ├── tan_amd64.s │ ├── atan2_amd64.s │ ├── expm1_amd64.s │ ├── frexp_amd64.s │ ├── ldexp_amd64.s │ ├── log1p_amd64.s │ ├── sincos_arm.s │ ├── remainder_arm.s │ └── remainder_amd64.s ├── strings │ └── strings.s ├── fmt │ └── export_test.go ├── sync │ └── atomic │ │ └── export_linux_arm_test.go ├── vendor │ └── golang_org │ │ └── x │ │ └── net │ │ └── route │ │ └── syscall.s ├── mime │ └── testdata │ │ └── test.types ├── os │ └── export_test.go └── sort │ └── export_test.go ├── test ├── fixedbugs │ ├── bug328.out │ ├── bug206.out │ ├── issue6899.out │ ├── issue5957.dir │ │ ├── b.go │ │ └── a.go │ ├── bug409.out │ ├── issue11053.out │ ├── issue15470.dir │ │ └── b.go │ ├── issue5614.dir │ │ ├── y.go │ │ └── x.go │ ├── issue8280.dir │ │ ├── a.go │ │ └── b.go │ ├── issue10066.dir │ │ ├── b.go │ │ └── a.go │ ├── issue15609.dir │ │ ├── call_decl.go │ │ ├── call.go │ │ ├── call_386.s │ │ ├── call_amd64.s │ │ └── main.go │ ├── issue16133.dir │ │ ├── b.go │ │ ├── a1.go │ │ ├── a2.go │ │ └── c.go │ ├── issue4326.dir │ │ ├── p2.go │ │ ├── z.go │ │ ├── q1.go │ │ └── q2.go │ ├── bug467.dir │ │ ├── p3.go │ │ ├── p2.go │ │ └── p1.go │ ├── issue13777.dir │ │ └── main.go │ ├── issue7995b.dir │ │ ├── x2.go │ │ └── x1.go │ ├── issue4879.dir │ │ └── b.go │ ├── 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 │ ├── bug083.go │ ├── bug106.dir │ │ ├── bug0.go │ │ └── bug1.go │ ├── bug133.go │ ├── issue15548.go │ ├── issue15920.dir │ │ ├── b.go │ │ └── a.go │ ├── issue15920.go │ ├── issue4510.dir │ │ └── f2.go │ ├── bug222.dir │ │ └── chanbug2.go │ ├── bug282.dir │ │ ├── p2.go │ │ └── p1.go │ ├── bug306.dir │ │ ├── p2.go │ │ └── p1.go │ ├── issue10700.go │ ├── issue15514.go │ ├── issue4510.go │ ├── issue4932.dir │ │ ├── foo.go │ │ └── state2.go │ ├── issue5260.dir │ │ ├── a.go │ │ └── b.go │ ├── issue5957.go │ ├── issue6513.dir │ │ ├── a.go │ │ └── b.go │ ├── bug377.dir │ │ ├── two.go │ │ └── one.go │ ├── bug382.dir │ │ └── pkg.go │ ├── bug468.dir │ │ └── p1.go │ ├── issue15514.dir │ │ ├── a.go │ │ └── b.go │ ├── issue16616.dir │ │ └── a.go │ ├── bug063.go │ ├── bug133.dir │ │ ├── bug0.go │ │ └── bug1.go │ ├── issue8060.dir │ │ └── a.go │ ├── bug050.go │ ├── bug160.dir │ │ └── x.go │ ├── bug488.dir │ │ ├── a.go │ │ └── b.go │ ├── issue5105.dir │ │ └── a.go │ ├── bug322.go │ ├── bug232.go │ ├── bug335.dir │ │ └── b.go │ ├── bug335.go │ ├── bug377.go │ ├── bug382.go │ ├── issue12677.dir │ │ ├── q.go │ │ └── p.go │ ├── issue15548.dir │ │ ├── b.go │ │ └── c.go │ ├── bug083.dir │ │ └── bug0.go │ ├── bug478.dir │ │ └── a.go │ ├── issue15838.dir │ │ └── b.go │ ├── issue5291.go │ ├── issue7023.dir │ │ ├── a.go │ │ └── b.go │ ├── bug191.go │ ├── bug415.dir │ │ └── prog.go │ ├── issue11053.dir │ │ └── p.go │ ├── bug169.go │ ├── bug224.go │ ├── bug492.go │ ├── issue14652.go │ ├── issue5125.dir │ │ └── main.go │ ├── bug313.dir │ │ └── b.go │ ├── issue7648.dir │ │ └── b.go │ ├── bug233.go │ ├── bug437.dir │ │ └── two.go │ ├── issue10219.dir │ │ └── b.go │ ├── issue10700.dir │ │ └── other.go │ ├── issue14331.go │ └── issue8060.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 ├── method4.go ├── import4.dir │ └── empty.go ├── import2.go └── intrinsic.go ├── doc ├── articles │ ├── wiki │ │ ├── test_Test.txt.good │ │ ├── test_view.good │ │ ├── view.html │ │ ├── test_edit.good │ │ └── edit.html │ └── index.html ├── ie.css ├── share.png ├── gopher │ ├── doc.png │ ├── help.png │ ├── pkg.png │ ├── ref.png │ ├── run.png │ ├── biplane.jpg │ ├── bumper.png │ ├── project.png │ ├── talks.png │ ├── fiveyears.jpg │ ├── frontpage.png │ ├── gopherbw.png │ ├── gophercolor.png │ ├── appenginelogo.gif │ ├── bumper192x108.png │ ├── bumper320x180.png │ ├── bumper480x270.png │ ├── bumper640x360.png │ ├── appenginegopher.jpg │ ├── gophercolor16x16.png │ ├── pencil │ │ ├── gopherhat.jpg │ │ ├── gophermega.jpg │ │ ├── gopherswim.jpg │ │ ├── gopherhelmet.jpg │ │ ├── gopherrunning.jpg │ │ └── gopherswrench.jpg │ ├── appenginegophercolor.jpg │ └── README ├── go-logo-black.png ├── go-logo-blue.png ├── go-logo-white.png ├── codewalk │ └── popout.png ├── play │ └── hello.go └── progs │ └── eff_unused1.go ├── robots.txt ├── favicon.ico ├── lib └── time │ └── zoneinfo.zip └── .github └── PULL_REQUEST_TEMPLATE /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/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/net/http/testdata/file: -------------------------------------------------------------------------------- 1 | 0123456789 2 | -------------------------------------------------------------------------------- /src/net/http/testdata/style.css: -------------------------------------------------------------------------------- 1 | body {} 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/testdata/rundir/x.go: -------------------------------------------------------------------------------- 1 | package main 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/badc/x.c: -------------------------------------------------------------------------------- 1 | // C code! 2 | -------------------------------------------------------------------------------- /src/net/testdata/singleline-hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.2 odin -------------------------------------------------------------------------------- /test/fixedbugs/issue6899.out: -------------------------------------------------------------------------------- 1 | -0.000000e+000 2 | -------------------------------------------------------------------------------- /src/archive/tar/testdata/small2.txt: -------------------------------------------------------------------------------- 1 | Google.com 2 | -------------------------------------------------------------------------------- /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/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/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/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 -------------------------------------------------------------------------------- /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/badtest/badvar/x.go: -------------------------------------------------------------------------------- 1 | package badvar 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/canonical/a/vendor/c/c.go: -------------------------------------------------------------------------------- 1 | package c 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/dupload/vendor/p/p.go: -------------------------------------------------------------------------------- 1 | package p 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vetpkg/a_test.go: -------------------------------------------------------------------------------- 1 | package p_test 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/net/testdata/invalid-ndots-resolv.conf: -------------------------------------------------------------------------------- 1 | options ndots:invalid -------------------------------------------------------------------------------- /src/net/testdata/negative-ndots-resolv.conf: -------------------------------------------------------------------------------- 1 | options ndots:-1 -------------------------------------------------------------------------------- /test/fixedbugs/issue5957.dir/b.go: -------------------------------------------------------------------------------- 1 | package surprise2 2 | 3 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/shadow/root1/src/math/math.go: -------------------------------------------------------------------------------- 1 | package math 2 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/badtest/badsyntax/x.go: -------------------------------------------------------------------------------- 1 | package badsyntax 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 | -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/favicon.ico -------------------------------------------------------------------------------- /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/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/issue5957.dir/a.go: -------------------------------------------------------------------------------- 1 | package surprise 2 | 3 | var X int 4 | -------------------------------------------------------------------------------- /test/ken/string.out: -------------------------------------------------------------------------------- 1 | abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz 2 | -------------------------------------------------------------------------------- /doc/share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/share.png -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/canonical/a/a.go: -------------------------------------------------------------------------------- 1 | package a 2 | 3 | import _ "c" 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /doc/gopher/doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/doc.png -------------------------------------------------------------------------------- /doc/gopher/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/help.png -------------------------------------------------------------------------------- /doc/gopher/pkg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/pkg.png -------------------------------------------------------------------------------- /doc/gopher/ref.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/ref.png -------------------------------------------------------------------------------- /doc/gopher/run.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/run.png -------------------------------------------------------------------------------- /misc/cgo/testshared/src/trivial/trivial.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | func main() { 4 | } 5 | -------------------------------------------------------------------------------- /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/dupload/p2/p2.go: -------------------------------------------------------------------------------- 1 | package p2 2 | import _ "dupload/vendor/p" 3 | -------------------------------------------------------------------------------- /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/go-logo-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/go-logo-black.png -------------------------------------------------------------------------------- /doc/go-logo-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/go-logo-blue.png -------------------------------------------------------------------------------- /doc/go-logo-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/go-logo-white.png -------------------------------------------------------------------------------- /doc/gopher/biplane.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/biplane.jpg -------------------------------------------------------------------------------- /doc/gopher/bumper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/bumper.png -------------------------------------------------------------------------------- /doc/gopher/project.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/project.png -------------------------------------------------------------------------------- /doc/gopher/talks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/talks.png -------------------------------------------------------------------------------- /lib/time/zoneinfo.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/lib/time/zoneinfo.zip -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/go/build/testdata/ignored/ignored.go: -------------------------------------------------------------------------------- 1 | // +build alwaysignore 2 | 3 | package ignored 4 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z1.go: -------------------------------------------------------------------------------- 1 | 2 | 3 | //line x1.go:4 4 | package main 5 | func F1() {} 6 | -------------------------------------------------------------------------------- /test/dwarf/dwarf.dir/z18.go: -------------------------------------------------------------------------------- 1 | 2 | 3 | //line x18.go:4 4 | package main 5 | func F18() {} 6 | -------------------------------------------------------------------------------- /test/fixedbugs/bug409.out: -------------------------------------------------------------------------------- 1 | +1.000000e+000 +2.000000e+000 +3.000000e+000 +4.000000e+000 2 | -------------------------------------------------------------------------------- /test/fixedbugs/issue11053.out: -------------------------------------------------------------------------------- 1 | Starting 2 | Before, *resp.V= 42 3 | After, *resp.V= 42 4 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15470.dir/b.go: -------------------------------------------------------------------------------- 1 | package b 2 | 3 | import _ "./a" // must not fail 4 | -------------------------------------------------------------------------------- /test/fixedbugs/issue5614.dir/y.go: -------------------------------------------------------------------------------- 1 | package y 2 | 3 | import "./x" 4 | 5 | var T = x.S 6 | -------------------------------------------------------------------------------- /doc/codewalk/popout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/codewalk/popout.png -------------------------------------------------------------------------------- /doc/gopher/fiveyears.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/fiveyears.jpg -------------------------------------------------------------------------------- /doc/gopher/frontpage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/frontpage.png -------------------------------------------------------------------------------- /doc/gopher/gopherbw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/gopherbw.png -------------------------------------------------------------------------------- /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/gophercolor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/gophercolor.png -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/stdin5.golden: -------------------------------------------------------------------------------- 1 | //gofmt -stdin 2 | 3 | i := 5 // Line comment without newline. -------------------------------------------------------------------------------- /src/text/template/testdata/file1.tmpl: -------------------------------------------------------------------------------- 1 | {{define "x"}}TEXT{{end}} 2 | {{define "dotV"}}{{.V}}{{end}} 3 | -------------------------------------------------------------------------------- /src/text/template/testdata/tmpl1.tmpl: -------------------------------------------------------------------------------- 1 | template1 2 | {{define "x"}}x{{end}} 3 | {{template "y"}} 4 | -------------------------------------------------------------------------------- /src/text/template/testdata/tmpl2.tmpl: -------------------------------------------------------------------------------- 1 | template2 2 | {{define "y"}}y{{end}} 3 | {{template "x"}} 4 | -------------------------------------------------------------------------------- /doc/gopher/appenginelogo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/appenginelogo.gif -------------------------------------------------------------------------------- /doc/gopher/bumper192x108.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/bumper192x108.png -------------------------------------------------------------------------------- /doc/gopher/bumper320x180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/bumper320x180.png -------------------------------------------------------------------------------- /doc/gopher/bumper480x270.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/bumper480x270.png -------------------------------------------------------------------------------- /doc/gopher/bumper640x360.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/bumper640x360.png -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/badtest/badsyntax/x_test.go: -------------------------------------------------------------------------------- 1 | package badsyntax 2 | 3 | func func func func func! 4 | -------------------------------------------------------------------------------- /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/net/testdata/case-hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.1 PreserveMe PreserveMe.local 2 | ::1 PreserveMe PreserveMe.local 3 | -------------------------------------------------------------------------------- /doc/gopher/appenginegopher.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/appenginegopher.jpg -------------------------------------------------------------------------------- /doc/gopher/gophercolor16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/gophercolor16x16.png -------------------------------------------------------------------------------- /doc/gopher/pencil/gopherhat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/pencil/gopherhat.jpg -------------------------------------------------------------------------------- /doc/gopher/pencil/gophermega.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/pencil/gophermega.jpg -------------------------------------------------------------------------------- /doc/gopher/pencil/gopherswim.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/pencil/gopherswim.jpg -------------------------------------------------------------------------------- /misc/cgo/testshared/src/implicit/implicit.go: -------------------------------------------------------------------------------- 1 | package implicit 2 | 3 | func I() int { 4 | return 42 5 | } 6 | -------------------------------------------------------------------------------- /src/archive/tar/testdata/v7.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/tar/testdata/v7.tar -------------------------------------------------------------------------------- /src/archive/zip/testdata/dd.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/zip/testdata/dd.zip -------------------------------------------------------------------------------- /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/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/debug/dwarf/testdata/line2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void f2() 4 | { 5 | printf("hello\n"); 6 | } 7 | -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/split.c: -------------------------------------------------------------------------------- 1 | // gcc -gsplit-dwarf split.c -o split.elf 2 | 3 | int main() 4 | { 5 | } 6 | -------------------------------------------------------------------------------- /src/image/testdata/video-001.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.gif -------------------------------------------------------------------------------- /src/image/testdata/video-001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.png -------------------------------------------------------------------------------- /test/fixedbugs/issue10066.dir/b.go: -------------------------------------------------------------------------------- 1 | package b 2 | 3 | import "./a" 4 | 5 | func test() { 6 | a.Do() 7 | } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15609.dir/call_decl.go: -------------------------------------------------------------------------------- 1 | // +build amd64 386 2 | 3 | package main 4 | 5 | func jump() 6 | -------------------------------------------------------------------------------- /test/fixedbugs/issue16133.dir/b.go: -------------------------------------------------------------------------------- 1 | package b 2 | 3 | import "./a2" 4 | 5 | type T struct { 6 | X a.X 7 | } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue4326.dir/p2.go: -------------------------------------------------------------------------------- 1 | package p2 2 | 3 | import "./p1" 4 | 5 | func NewO() p1.O { return nil } 6 | -------------------------------------------------------------------------------- /doc/gopher/pencil/gopherhelmet.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/pencil/gopherhelmet.jpg -------------------------------------------------------------------------------- /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/depBase/stubs.go: -------------------------------------------------------------------------------- 1 | //+build !gccgo 2 | 3 | package depBase 4 | 5 | func ImplementedInAsm() 6 | -------------------------------------------------------------------------------- /misc/cgo/testshared/src/execgo/exe.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | /* 4 | */ 5 | import "C" 6 | 7 | func main() { 8 | } 9 | -------------------------------------------------------------------------------- /misc/chrome/gophertool/gopher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/misc/chrome/gophertool/gopher.png -------------------------------------------------------------------------------- /src/archive/zip/testdata/test.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/zip/testdata/test.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/unix.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/zip/testdata/unix.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/winxp.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/zip/testdata/winxp.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/zip64.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/zip/testdata/zip64.zip -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/badtest/badvar/x_test.go: -------------------------------------------------------------------------------- 1 | package badvar_test 2 | 3 | func f() { 4 | _ = notdefined 5 | } 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/debug/dwarf/testdata/cycle.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/dwarf/testdata/cycle.elf -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/split.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/dwarf/testdata/split.elf -------------------------------------------------------------------------------- /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.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.jpeg -------------------------------------------------------------------------------- /test/fixedbugs/issue16133.dir/a1.go: -------------------------------------------------------------------------------- 1 | package a 2 | 3 | type X string 4 | 5 | func NewX() X { 6 | return "" 7 | } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue16133.dir/a2.go: -------------------------------------------------------------------------------- 1 | package a 2 | 3 | type X string 4 | 5 | func NewX() X { 6 | return "" 7 | } 8 | -------------------------------------------------------------------------------- /doc/gopher/appenginegophercolor.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/appenginegophercolor.jpg -------------------------------------------------------------------------------- /doc/gopher/pencil/gopherrunning.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/pencil/gopherrunning.jpg -------------------------------------------------------------------------------- /doc/gopher/pencil/gopherswrench.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/doc/gopher/pencil/gopherswrench.jpg -------------------------------------------------------------------------------- /misc/cgo/testshared/src/depBase/gccgo.go: -------------------------------------------------------------------------------- 1 | //+build gccgo 2 | 3 | package depBase 4 | 5 | func ImplementedInAsm() {} 6 | -------------------------------------------------------------------------------- /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/neg-size.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/tar/testdata/neg-size.tar -------------------------------------------------------------------------------- /src/archive/zip/testdata/readme.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/zip/testdata/readme.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/symlink.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/zip/testdata/symlink.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/zip64-2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/zip/testdata/zip64-2.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/badtest/badexec/x_test.go: -------------------------------------------------------------------------------- 1 | package badexec 2 | 3 | func init() { 4 | panic("badexec") 5 | } 6 | -------------------------------------------------------------------------------- /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/compress/bzip2/testdata/e.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/bzip2/testdata/e.txt.bz2 -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/line-gcc.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/dwarf/testdata/line-gcc.elf -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/ranges.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/dwarf/testdata/ranges.elf -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/typedef.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/dwarf/testdata/typedef.elf -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/typedef.elf4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/dwarf/testdata/typedef.elf4 -------------------------------------------------------------------------------- /src/image/png/testdata/benchGray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/benchGray.png -------------------------------------------------------------------------------- /src/image/png/testdata/benchRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/benchRGB.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.5bpp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.5bpp.gif -------------------------------------------------------------------------------- /src/image/testdata/video-001.cmyk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.cmyk.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.rgb.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.rgb.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.rgb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.rgb.png -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-005.gray.gif -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-005.gray.png -------------------------------------------------------------------------------- /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/issue10968.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/tar/testdata/issue10968.tar -------------------------------------------------------------------------------- /src/archive/tar/testdata/issue12435.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/tar/testdata/issue12435.tar -------------------------------------------------------------------------------- /src/archive/tar/testdata/writer-big.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/tar/testdata/writer-big.tar -------------------------------------------------------------------------------- /src/archive/zip/testdata/readme.notzip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/zip/testdata/readme.notzip -------------------------------------------------------------------------------- /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/importmain/ismain/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import _ "importmain/test" 4 | 5 | func main() {} 6 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/my.pkg/main/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | import "my.pkg" 3 | func main() { 4 | println(pkg.Text) 5 | } 6 | -------------------------------------------------------------------------------- /src/compress/gzip/testdata/issue6550.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/gzip/testdata/issue6550.gz -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/line-clang.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/dwarf/testdata/line-clang.elf -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/typedef.macho: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/dwarf/testdata/typedef.macho -------------------------------------------------------------------------------- /src/debug/pe/testdata/gcc-386-mingw-obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/pe/testdata/gcc-386-mingw-obj -------------------------------------------------------------------------------- /src/encoding/json/testdata/code.json.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/encoding/json/testdata/code.json.gz -------------------------------------------------------------------------------- /src/image/png/testdata/invalid-zlib.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/invalid-zlib.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.221212.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.221212.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.cmyk.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.cmyk.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-005.gray.jpeg -------------------------------------------------------------------------------- /src/runtime/race/race_darwin_amd64.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/runtime/race/race_darwin_amd64.syso -------------------------------------------------------------------------------- /src/runtime/race/race_linux_amd64.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/runtime/race/race_linux_amd64.syso -------------------------------------------------------------------------------- /test/fixedbugs/issue15609.dir/call.go: -------------------------------------------------------------------------------- 1 | // +build !amd64,!386 2 | 3 | package main 4 | 5 | func jump() { 6 | target() 7 | } 8 | -------------------------------------------------------------------------------- /doc/articles/wiki/test_view.good: -------------------------------------------------------------------------------- 1 |

Test

2 | 3 |

[edit]

4 | 5 |
some content
6 | -------------------------------------------------------------------------------- /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/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/crypto/ecdsa/testdata/SigVer.rsp.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/crypto/ecdsa/testdata/SigVer.rsp.bz2 -------------------------------------------------------------------------------- /src/crypto/rsa/testdata/pss-vect.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/crypto/rsa/testdata/pss-vect.txt.bz2 -------------------------------------------------------------------------------- /src/debug/elf/testdata/compressed-32.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/elf/testdata/compressed-32.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/compressed-64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/elf/testdata/compressed-64.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/hello-world-core.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/elf/testdata/hello-world-core.gz -------------------------------------------------------------------------------- /src/debug/pe/testdata/gcc-386-mingw-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/pe/testdata/gcc-386-mingw-exec -------------------------------------------------------------------------------- /src/debug/pe/testdata/gcc-amd64-mingw-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/pe/testdata/gcc-amd64-mingw-exec -------------------------------------------------------------------------------- /src/debug/pe/testdata/gcc-amd64-mingw-obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/pe/testdata/gcc-amd64-mingw-obj -------------------------------------------------------------------------------- /src/debug/plan9obj/testdata/386-plan9-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/plan9obj/testdata/386-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/benchPaletted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/benchPaletted.png -------------------------------------------------------------------------------- /src/image/png/testdata/gray-gradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/gray-gradient.png -------------------------------------------------------------------------------- /src/image/png/testdata/invalid-crc32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/invalid-crc32.png -------------------------------------------------------------------------------- /src/image/png/testdata/invalid-noend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/invalid-noend.png -------------------------------------------------------------------------------- /src/image/png/testdata/invalid-trunc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/invalid-trunc.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.221212.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.221212.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.410.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.q50.410.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.411.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.q50.411.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.420.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.q50.420.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.422.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.q50.422.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.440.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.q50.440.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.444.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.q50.444.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.q50.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-005.gray.q50.jpeg -------------------------------------------------------------------------------- /src/internal/trace/testdata/http_1_5_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/internal/trace/testdata/http_1_5_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/http_1_7_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/internal/trace/testdata/http_1_7_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 | -------------------------------------------------------------------------------- /src/regexp/testdata/re2-exhaustive.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/regexp/testdata/re2-exhaustive.txt.bz2 -------------------------------------------------------------------------------- /src/runtime/race/race_freebsd_amd64.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/runtime/race/race_freebsd_amd64.syso -------------------------------------------------------------------------------- /src/runtime/race/race_windows_amd64.syso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/runtime/race/race_windows_amd64.syso -------------------------------------------------------------------------------- /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/tar/testdata/writer-big-long.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/tar/testdata/writer-big-long.tar -------------------------------------------------------------------------------- /src/archive/zip/testdata/extra-timestamp.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/zip/testdata/extra-timestamp.zip -------------------------------------------------------------------------------- /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/objdump/testdata/fmthello.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "fmt" 4 | 5 | func main() { 6 | fmt.Println("hello, world") 7 | } 8 | -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/pass-random1.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/bzip2/testdata/pass-random1.bin -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/pass-random1.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/bzip2/testdata/pass-random1.bz2 -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/pass-random2.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/bzip2/testdata/pass-random2.bin -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/pass-random2.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/bzip2/testdata/pass-random2.bz2 -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/random.data.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/bzip2/testdata/random.data.bz2 -------------------------------------------------------------------------------- /src/debug/elf/testdata/gcc-386-freebsd-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/elf/testdata/gcc-386-freebsd-exec -------------------------------------------------------------------------------- /src/debug/elf/testdata/gcc-amd64-linux-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/elf/testdata/gcc-amd64-linux-exec -------------------------------------------------------------------------------- /src/debug/macho/testdata/gcc-386-darwin-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/macho/testdata/gcc-386-darwin-exec -------------------------------------------------------------------------------- /src/debug/pe/testdata/hello.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int 4 | main(void) 5 | { 6 | printf("hello, world\n"); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /src/debug/plan9obj/testdata/amd64-plan9-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/plan9obj/testdata/amd64-plan9-exec -------------------------------------------------------------------------------- /src/image/png/testdata/benchNRGBA-opaque.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/benchNRGBA-opaque.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn0g01.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn0g02.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn0g04.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn0g08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn0g16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn2c08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn2c16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn3p01.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn3p02.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn3p04.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn4a08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn4a08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn4a16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn4a16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn6a08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn6a08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn6a16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn6a16.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.interlaced.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.interlaced.gif -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_1_5_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/internal/trace/testdata/stress_1_5_good -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_1_7_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/internal/trace/testdata/stress_1_7_good -------------------------------------------------------------------------------- /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/crc32-not-streamed.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/zip/testdata/crc32-not-streamed.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/go-no-datadesc-sig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/zip/testdata/go-no-datadesc-sig.zip -------------------------------------------------------------------------------- /src/archive/zip/testdata/gophercolor16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/zip/testdata/gophercolor16x16.png -------------------------------------------------------------------------------- /src/archive/zip/testdata/test-trailing-junk.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/zip/testdata/test-trailing-junk.zip -------------------------------------------------------------------------------- /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/compress/bzip2/testdata/fail-issue5747.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/bzip2/testdata/fail-issue5747.bz2 -------------------------------------------------------------------------------- /src/compress/bzip2/testdata/pass-sawtooth.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/bzip2/testdata/pass-sawtooth.bz2 -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-pi.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-pi.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-1k.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-rand-1k.in -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-max.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-rand-max.in -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-text.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-zero.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-zero.golden -------------------------------------------------------------------------------- /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/gcc-amd64-darwin-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/macho/testdata/gcc-amd64-darwin-exec -------------------------------------------------------------------------------- /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/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/image/png/testdata/benchNRGBA-gradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/benchNRGBA-gradient.png -------------------------------------------------------------------------------- /src/image/png/testdata/benchRGB-interlace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/benchRGB-interlace.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g01-30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn0g01-30.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g02-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn0g02-29.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn0g04-31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn0g04-31.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbbn0g01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/ftbbn0g01.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbbn0g02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/ftbbn0g02.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbbn0g04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/ftbbn0g04.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbbn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/ftbbn2c16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbbn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/ftbbn3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbgn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/ftbgn2c16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbgn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/ftbgn3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbrn2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/ftbrn2c08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbwn0g16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/ftbwn0g16.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbwn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/ftbwn3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftbyn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/ftbyn3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftp0n0g08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/ftp0n0g08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftp0n2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/ftp0n2c08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftp0n3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/ftp0n3p08.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/ftp1n3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/ftp1n3p08.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.q50.2x2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-005.gray.q50.2x2.jpeg -------------------------------------------------------------------------------- /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/archive/zip/testdata/go-with-datadesc-sig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/archive/zip/testdata/go-with-datadesc-sig.zip -------------------------------------------------------------------------------- /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-pi.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-pi.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-pi.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-pi.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-limit.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-rand-limit.in -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-shifts.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-shifts.golden -------------------------------------------------------------------------------- /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/plan9obj/testdata/hello.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | void 5 | main(void) 6 | { 7 | print("hello, world\n"); 8 | } 9 | -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p04-31i.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn3p04-31i.png -------------------------------------------------------------------------------- /src/image/png/testdata/pngsuite/basn3p08-trns.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/pngsuite/basn3p08-trns.png -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_1_5_unordered: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/internal/trace/testdata/stress_1_5_unordered -------------------------------------------------------------------------------- /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/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/standalone_benchmark_test.go: -------------------------------------------------------------------------------- 1 | package standalone_benchmark 2 | 3 | import "testing" 4 | 5 | func Benchmark(b *testing.B) { 6 | } 7 | -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-null-max.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-null-max.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-1k.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-rand-1k.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-max.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-rand-max.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-shifts.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-shifts.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-text.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-text.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-zero.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-zero.dyn.expect -------------------------------------------------------------------------------- /src/debug/elf/testdata/zdebug-test-gcc484-x86-64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/elf/testdata/zdebug-test-gcc484-x86-64.obj -------------------------------------------------------------------------------- /src/debug/macho/testdata/gcc-amd64-darwin-exec-debug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/macho/testdata/gcc-amd64-darwin-exec-debug -------------------------------------------------------------------------------- /src/debug/pe/testdata/gcc-386-mingw-no-symbols-exec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/pe/testdata/gcc-386-mingw-no-symbols-exec -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/pointer.gox: -------------------------------------------------------------------------------- 1 | v1; 2 | package pointer; 3 | pkgpath pointer; 4 | type >>; 5 | -------------------------------------------------------------------------------- /src/go/printer/testdata/empty.golden: -------------------------------------------------------------------------------- 1 | // a comment at the beginning of the file 2 | 3 | package empty 4 | 5 | // a comment at the end of the file 6 | -------------------------------------------------------------------------------- /src/go/printer/testdata/empty.input: -------------------------------------------------------------------------------- 1 | // a comment at the beginning of the file 2 | 3 | package empty 4 | 5 | // a comment at the end of the file 6 | -------------------------------------------------------------------------------- /src/image/png/testdata/gray-gradient.interlaced.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/png/testdata/gray-gradient.interlaced.png -------------------------------------------------------------------------------- /test/deferprint.out: -------------------------------------------------------------------------------- 1 | printing: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 | 42 true false true +1.500000e+000 world 0x0 [0/0]0x0 0x0 0x0 255 3 | -------------------------------------------------------------------------------- /misc/cgo/fortran/helloworld/helloworld.f90: -------------------------------------------------------------------------------- 1 | program HelloWorldF90 2 | write(*,*) "Hello World!" 3 | end program HelloWorldF90 4 | -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-null-max.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-null-max.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-1k.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-rand-1k.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-1k.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-rand-1k.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-limit.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-rand-limit.golden -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-shifts.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-shifts.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text-shift.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-text-shift.golden -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc5-ppc.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/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/goodlang/good/HEAD/src/debug/macho/testdata/fat-gcc-386-amd64-darwin-exec -------------------------------------------------------------------------------- /src/image/testdata/video-001.progressive.truncated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.progressive.truncated.png -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.410.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.q50.410.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.411.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.q50.411.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.420.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.q50.420.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.422.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.q50.422.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.440.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.q50.440.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.q50.444.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.q50.444.progressive.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.q50.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-005.gray.q50.progressive.jpeg -------------------------------------------------------------------------------- /src/internal/trace/testdata/stress_start_stop_1_5_good: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/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/goodlang/good/HEAD/src/internal/trace/testdata/stress_start_stop_1_7_good -------------------------------------------------------------------------------- /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/bzip2/testdata/Mark.Twain-Tom.Sawyer.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/bzip2/testdata/Mark.Twain-Tom.Sawyer.txt.bz2 -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-null-max.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-null-max.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-pi.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-pi.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-pi.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-pi.wb.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-limit.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-rand-limit.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-limit.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-rand-limit.wb.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text-shift.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-text-shift.dyn.expect -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text-shift.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-text-shift.wb.expect -------------------------------------------------------------------------------- /src/debug/dwarf/testdata/cycle.c: -------------------------------------------------------------------------------- 1 | typedef struct aaa *AAA; 2 | typedef AAA BBB; 3 | struct aaa { BBB val; }; 4 | 5 | AAA x(void) { 6 | return (AAA)0; 7 | } 8 | -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-clang-arm.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/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/goodlang/good/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/goodlang/good/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/goodlang/good/HEAD/src/debug/elf/testdata/go-relocation-test-gcc492-arm.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc540-mips.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/elf/testdata/go-relocation-test-gcc540-mips.obj -------------------------------------------------------------------------------- /src/go/doc/testdata/issue17788.0.golden: -------------------------------------------------------------------------------- 1 | // 2 | PACKAGE issue17788 3 | 4 | IMPORTPATH 5 | testdata/issue17788 6 | 7 | FILENAMES 8 | testdata/issue17788.go 9 | -------------------------------------------------------------------------------- /src/go/doc/testdata/issue17788.1.golden: -------------------------------------------------------------------------------- 1 | // 2 | PACKAGE issue17788 3 | 4 | IMPORTPATH 5 | testdata/issue17788 6 | 7 | FILENAMES 8 | testdata/issue17788.go 9 | -------------------------------------------------------------------------------- /src/go/doc/testdata/issue17788.2.golden: -------------------------------------------------------------------------------- 1 | // 2 | PACKAGE issue17788 3 | 4 | IMPORTPATH 5 | testdata/issue17788 6 | 7 | FILENAMES 8 | testdata/issue17788.go 9 | -------------------------------------------------------------------------------- /src/image/testdata/video-001.progressive.truncated.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.progressive.truncated.jpeg -------------------------------------------------------------------------------- /src/image/testdata/video-001.separate.dc.progression.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.separate.dc.progression.jpeg -------------------------------------------------------------------------------- /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/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-text.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-text.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-text.wb.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-zero.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-zero.dyn.expect-noinput -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc424-x86-64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/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/goodlang/good/HEAD/src/debug/elf/testdata/go-relocation-test-gcc441-x86-64.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc492-mips64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/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/goodlang/good/HEAD/src/debug/elf/testdata/go-relocation-test-gcc492-mipsle.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc531-s390x.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/elf/testdata/go-relocation-test-gcc531-s390x.obj -------------------------------------------------------------------------------- /src/go/internal/gcimporter/testdata/versions/test_go1.7_0.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/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/goodlang/good/HEAD/src/go/internal/gcimporter/testdata/versions/test_go1.7_1.a -------------------------------------------------------------------------------- /src/image/testdata/video-005.gray.q50.2x2.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-005.gray.q50.2x2.progressive.jpeg -------------------------------------------------------------------------------- /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/compress/flate/testdata/huffman-null-max.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/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/goodlang/good/HEAD/src/compress/flate/testdata/huffman-rand-1k.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-1k.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-rand-1k.wb.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-shifts.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-shifts.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-shifts.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-shifts.wb.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/null-long-match.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/null-long-match.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/null-long-match.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/null-long-match.wb.expect-noinput -------------------------------------------------------------------------------- /src/debug/elf/testdata/gcc-amd64-openbsd-debug-with-rela.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/debug/elf/testdata/gcc-amd64-openbsd-debug-with-rela.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc482-aarch64.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/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/goodlang/good/HEAD/src/debug/elf/testdata/go-relocation-test-gcc482-ppc64le.obj -------------------------------------------------------------------------------- /src/debug/elf/testdata/go-relocation-test-gcc493-mips64le.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/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/goodlang/good/HEAD/src/debug/elf/testdata/go-relocation-test-gcc620-sparc64.obj -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/complexnums.go: -------------------------------------------------------------------------------- 1 | package complexnums 2 | 3 | const NN = -1 - 1i 4 | const NP = -1 + 1i 5 | const PN = 1 - 1i 6 | const PP = 1 + 1i 7 | -------------------------------------------------------------------------------- /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/compress/flate/testdata/huffman-null-max.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-null-max.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-rand-limit.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-rand-limit.wb.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text-shift.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-text-shift.wb.expect-noinput -------------------------------------------------------------------------------- /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/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/compress/flate/testdata/huffman-rand-limit.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-rand-limit.dyn.expect-noinput -------------------------------------------------------------------------------- /src/compress/flate/testdata/huffman-text-shift.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/compress/flate/testdata/huffman-text-shift.dyn.expect-noinput -------------------------------------------------------------------------------- /src/go/build/testdata/other/main.go: -------------------------------------------------------------------------------- 1 | // Test data - not compiled. 2 | 3 | package main 4 | 5 | import ( 6 | "./file" 7 | ) 8 | 9 | func main() { 10 | file.F() 11 | } 12 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/image/testdata/video-001.separate.dc.progression.progressive.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodlang/good/HEAD/src/image/testdata/video-001.separate.dc.progression.progressive.jpeg -------------------------------------------------------------------------------- /src/runtime/zcallback_windows.go: -------------------------------------------------------------------------------- 1 | // generated by wincallback.go; run go generate 2 | 3 | package runtime 4 | 5 | const cb_max = 2000 // maximum number of windows callbacks allowed 6 | -------------------------------------------------------------------------------- /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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /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/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/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/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/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 | -------------------------------------------------------------------------------- /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/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/math/sincos_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 "sincos_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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE: -------------------------------------------------------------------------------- 1 | # Description 2 | 3 | # What I've done 4 | 5 | # Issue refs 6 | 7 | Checklist to be merged: 8 | - [ ] I've gofmt'd my code 9 | - [ ] I've check that tests are passed and all works as expected. 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/issue15548.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2016 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15920.dir/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package b 6 | 7 | import _ "./a" 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15920.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2016 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue4510.dir/f2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package p 6 | 7 | func fmt() {} 8 | -------------------------------------------------------------------------------- /doc/gopher/README: -------------------------------------------------------------------------------- 1 | The Go gopher was designed by Renee French. (http://reneefrench.blogspot.com/) 2 | The design is licensed under the Creative Commons 3.0 Attributions license. 3 | Read this article for more details: https://blog.golang.org/gopher 4 | -------------------------------------------------------------------------------- /misc/cgo/test/issue8331.h: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | typedef struct { 6 | int i; 7 | } issue8331; 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/dep_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 deps 6 | 7 | import _ "testing" 8 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/testimport/x_test.go: -------------------------------------------------------------------------------- 1 | package p_test 2 | 3 | import ( 4 | . "../testimport" 5 | 6 | "./p2" 7 | 8 | "testing" 9 | ) 10 | 11 | func TestF1(t *testing.T) { 12 | if F() != p2.F() { 13 | t.Fatal(F()) 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/emptydecl.golden: -------------------------------------------------------------------------------- 1 | //gofmt -s 2 | 3 | // Test case for issue 7631. 4 | 5 | package main 6 | 7 | // Keep this declaration 8 | var () 9 | 10 | const ( 11 | // Keep this declaration 12 | ) 13 | 14 | func main() {} 15 | -------------------------------------------------------------------------------- /src/go/internal/gccgoimporter/testdata/complexnums.gox: -------------------------------------------------------------------------------- 1 | v1; 2 | package complexnums; 3 | pkgpath complexnums; 4 | priority 1; 5 | const NN = -0.1E1-0.1E1i ; 6 | const NP = -0.1E1+0.1E1i ; 7 | const PN = 0.1E1-0.1E1i ; 8 | const PP = 0.1E1+0.1E1i ; 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug222.dir/chanbug2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file 4 | 5 | package Bar 6 | import _ "chanbug" 7 | -------------------------------------------------------------------------------- /test/fixedbugs/bug282.dir/p2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package p2 6 | 7 | import _ "./p1" 8 | 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug306.dir/p2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package p2 6 | 7 | import _ "./p1" 8 | 9 | -------------------------------------------------------------------------------- /test/fixedbugs/issue10700.go: -------------------------------------------------------------------------------- 1 | // errorcheckdir 2 | 3 | // Copyright 2015 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15514.go: -------------------------------------------------------------------------------- 1 | // errorcheckdir 2 | 3 | // Copyright 2016 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue4510.go: -------------------------------------------------------------------------------- 1 | // errorcheckdir 2 | 3 | // Copyright 2012 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue4932.dir/foo.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package foo 6 | 7 | type Op struct{} 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue5260.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | const BOM = "\uFEFF" 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue5957.go: -------------------------------------------------------------------------------- 1 | // errorcheckdir 2 | 3 | // Copyright 2013 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package ignored 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue6513.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | type T struct{ int } 8 | -------------------------------------------------------------------------------- /src/cmd/compile/internal/test/README: -------------------------------------------------------------------------------- 1 | This directory holds small tests and benchmarks of code 2 | generated by the compiler. This code is not for importing, 3 | and the tests are intended to verify that specific optimzations 4 | are applied and correct. 5 | -------------------------------------------------------------------------------- /src/go/types/testdata/blank.src: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package _ /* ERROR invalid package name */ 6 | -------------------------------------------------------------------------------- /src/path/filepath/export_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package filepath 6 | 7 | var LstatP = &lstat 8 | -------------------------------------------------------------------------------- /src/strings/strings.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 | // This file is here just to make the go tool happy. 6 | -------------------------------------------------------------------------------- /test/fixedbugs/bug106.dir/bug1.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package bug1 6 | 7 | import _ "./bug0" 8 | 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug377.dir/two.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file 4 | 5 | package two 6 | 7 | import _ "./one" 8 | 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug382.dir/pkg.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package pkg 6 | type T struct {} 7 | var E T 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug468.dir/p1.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package p1 6 | 7 | type S struct { X, Y int } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15514.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | type A struct{ _ int32 } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue16616.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | type V struct{ i int } 8 | -------------------------------------------------------------------------------- /doc/progs/eff_unused1.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "io" 6 | "log" 7 | "os" 8 | ) 9 | 10 | func main() { 11 | fd, err := os.Open("test.go") 12 | if err != nil { 13 | log.Fatal(err) 14 | } 15 | // TODO: use fd. 16 | } 17 | -------------------------------------------------------------------------------- /misc/chrome/gophertool/README.txt: -------------------------------------------------------------------------------- 1 | To install: 2 | 3 | 1) chrome://extensions/ 4 | 2) click "[+] Developer Mode" in top right 5 | 3) "Load unpacked extension..." 6 | 4) pick $GOROOT/misc/chrome/gophertool 7 | 8 | Done. It'll now auto-reload from source. 9 | -------------------------------------------------------------------------------- /src/cmd/gofmt/testdata/emptydecl.input: -------------------------------------------------------------------------------- 1 | //gofmt -s 2 | 3 | // Test case for issue 7631. 4 | 5 | package main 6 | 7 | // Keep this declaration 8 | var () 9 | 10 | const ( 11 | // Keep this declaration 12 | ) 13 | 14 | type () 15 | 16 | func main() {} -------------------------------------------------------------------------------- /src/syscall/asm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·use(SB),NOSPLIT,$0 8 | RET 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug063.go: -------------------------------------------------------------------------------- 1 | // compile 2 | 3 | // Copyright 2009 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package bug063 8 | const c = 0 ^ 0 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug133.dir/bug0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package bug0 6 | 7 | type T struct { i int } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue8060.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | var A = []*[2][1]float64{} 8 | -------------------------------------------------------------------------------- /doc/articles/wiki/edit.html: -------------------------------------------------------------------------------- 1 |

Editing {{.Title}}

2 | 3 |
4 |
5 |
6 |
7 | -------------------------------------------------------------------------------- /misc/cgo/test/gcc68255/c.c: -------------------------------------------------------------------------------- 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 | static void f(void) { 6 | } 7 | 8 | void (*v)(void) = f; 9 | -------------------------------------------------------------------------------- /misc/cgo/testshared/src/dep2/dep2.go: -------------------------------------------------------------------------------- 1 | package dep2 2 | 3 | import "depBase" 4 | 5 | var W int = 1 6 | 7 | var hasProg depBase.HasProg 8 | 9 | type Dep2 struct { 10 | depBase.Dep 11 | } 12 | 13 | func G() int { 14 | return depBase.F() + 1 15 | } 16 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/xtestonly/f_test.go: -------------------------------------------------------------------------------- 1 | package xtestonly_test 2 | 3 | import ( 4 | "testing" 5 | "xtestonly" 6 | ) 7 | 8 | func TestF(t *testing.T) { 9 | if x := xtestonly.F(); x != 42 { 10 | t.Errorf("f.F() = %d, want 42", x) 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /test/fixedbugs/bug050.go: -------------------------------------------------------------------------------- 1 | // errorcheck 2 | 3 | // Copyright 2009 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | func main() { // ERROR "package" 8 | } 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug160.dir/x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package x 6 | 7 | const Zero = 0.0 8 | const Ten = 10.0 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug488.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | var p2 = Printf // ERROR "undefined" 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue5105.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | var A = [2]string{"hello", "world"} 8 | -------------------------------------------------------------------------------- /misc/cgo/test/issue8811.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 | int issue8811Initialized = 0; 6 | 7 | void issue8811Init() { 8 | } 9 | -------------------------------------------------------------------------------- /src/fmt/export_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package fmt 6 | 7 | var IsSpace = isSpace 8 | var Parsenum = parsenum 9 | -------------------------------------------------------------------------------- /src/math/atan_arm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Atan(SB),NOSPLIT,$0 8 | B ·atan(SB) 9 | -------------------------------------------------------------------------------- /src/math/exp2_arm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Exp2(SB),NOSPLIT,$0 8 | B ·exp2(SB) 9 | -------------------------------------------------------------------------------- /src/math/exp_arm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Exp(SB),NOSPLIT,$0 8 | B ·exp(SB) 9 | -------------------------------------------------------------------------------- /src/math/log_arm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Log(SB),NOSPLIT,$0 8 | B ·log(SB) 9 | -------------------------------------------------------------------------------- /src/math/mod_arm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Mod(SB),NOSPLIT,$0 8 | B ·mod(SB) 9 | -------------------------------------------------------------------------------- /src/math/modf_arm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Modf(SB),NOSPLIT,$0 8 | B ·modf(SB) 9 | -------------------------------------------------------------------------------- /src/math/tan_arm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Tan(SB),NOSPLIT,$0 8 | B ·tan(SB) 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug322.go: -------------------------------------------------------------------------------- 1 | // rundir 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 | // Test case for issue 1402. 8 | package ignored 9 | -------------------------------------------------------------------------------- /misc/cgo/testsovar/cgoso_c.c: -------------------------------------------------------------------------------- 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 | // +build ignore 6 | 7 | const char *exported_var = "Hello world"; 8 | -------------------------------------------------------------------------------- /src/math/atan2_arm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Atan2(SB),NOSPLIT,$0 8 | B ·atan2(SB) 9 | -------------------------------------------------------------------------------- /src/math/atan_amd64.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Atan(SB),NOSPLIT,$0 8 | JMP ·atan(SB) 9 | -------------------------------------------------------------------------------- /src/math/exp2_amd64.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Exp2(SB),NOSPLIT,$0 8 | JMP ·exp2(SB) 9 | -------------------------------------------------------------------------------- /src/math/expm1_arm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Expm1(SB),NOSPLIT,$0 8 | B ·expm1(SB) 9 | -------------------------------------------------------------------------------- /src/math/frexp_arm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Frexp(SB),NOSPLIT,$0 8 | B ·frexp(SB) 9 | -------------------------------------------------------------------------------- /src/math/hypot_arm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Hypot(SB),NOSPLIT,$0 8 | B ·hypot(SB) 9 | -------------------------------------------------------------------------------- /src/math/ldexp_arm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Ldexp(SB),NOSPLIT,$0 8 | B ·ldexp(SB) 9 | -------------------------------------------------------------------------------- /src/math/log1p_arm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Log1p(SB),NOSPLIT,$0 8 | B ·log1p(SB) 9 | -------------------------------------------------------------------------------- /src/math/mod_amd64.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Mod(SB),NOSPLIT,$0 8 | JMP ·mod(SB) 9 | -------------------------------------------------------------------------------- /src/math/modf_amd64.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Modf(SB),NOSPLIT,$0 8 | JMP ·modf(SB) 9 | -------------------------------------------------------------------------------- /src/math/tan_amd64.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Tan(SB),NOSPLIT,$0 8 | JMP ·tan(SB) 9 | -------------------------------------------------------------------------------- /src/sync/atomic/export_linux_arm_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package atomic 6 | 7 | var GeneralCAS64 = generalCAS64 8 | -------------------------------------------------------------------------------- /test/fixedbugs/bug232.go: -------------------------------------------------------------------------------- 1 | // compile 2 | 3 | // Copyright 2009 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package bug232 8 | type I interface { X(...int) } 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug335.dir/b.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 b 6 | 7 | import "./a" 8 | 9 | var Bar = a.Foo 10 | -------------------------------------------------------------------------------- /test/fixedbugs/bug335.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 | // Issue 1705. 8 | 9 | package ignored 10 | -------------------------------------------------------------------------------- /test/fixedbugs/bug377.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 | // Issue 1802 8 | 9 | package ignored 10 | -------------------------------------------------------------------------------- /test/fixedbugs/bug382.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 | // Issue 2529. 8 | 9 | package ignored 10 | -------------------------------------------------------------------------------- /test/fixedbugs/bug488.dir/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | import . "fmt" 8 | 9 | var p1 = Print 10 | -------------------------------------------------------------------------------- /test/fixedbugs/issue12677.dir/q.go: -------------------------------------------------------------------------------- 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 | package q 6 | import "./p" 7 | func f() { println(p.Baz(2)) } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15514.dir/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package b 6 | 7 | func B() (_ struct{ _ int32 }) { return } 8 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15548.dir/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package b 6 | 7 | import "./a" 8 | 9 | var X a.T 10 | -------------------------------------------------------------------------------- /test/method4.go: -------------------------------------------------------------------------------- 1 | // rundir 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 | // Test method expressions with arguments. 8 | package ignored 9 | -------------------------------------------------------------------------------- /misc/cgo/test/issue8756.go: -------------------------------------------------------------------------------- 1 | package cgotest 2 | 3 | /* 4 | #cgo LDFLAGS: -lm 5 | #include 6 | */ 7 | import "C" 8 | import ( 9 | "testing" 10 | 11 | "./issue8756" 12 | ) 13 | 14 | func test8756(t *testing.T) { 15 | issue8756.Pow() 16 | C.pow(1, 2) 17 | } 18 | -------------------------------------------------------------------------------- /src/go/doc/testdata/issue17788.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package issue17788 6 | 7 | func ( /* receiver type */ ) f0() { 8 | } 9 | -------------------------------------------------------------------------------- /src/math/atan2_amd64.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Atan2(SB),NOSPLIT,$0 8 | JMP ·atan2(SB) 9 | -------------------------------------------------------------------------------- /src/math/expm1_amd64.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Expm1(SB),NOSPLIT,$0 8 | JMP ·expm1(SB) 9 | -------------------------------------------------------------------------------- /src/math/frexp_amd64.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Frexp(SB),NOSPLIT,$0 8 | JMP ·frexp(SB) 9 | -------------------------------------------------------------------------------- /src/math/ldexp_amd64.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Ldexp(SB),NOSPLIT,$0 8 | JMP ·ldexp(SB) 9 | -------------------------------------------------------------------------------- /src/math/log1p_amd64.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Log1p(SB),NOSPLIT,$0 8 | JMP ·log1p(SB) 9 | -------------------------------------------------------------------------------- /src/math/sincos_arm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Sincos(SB),NOSPLIT,$0 8 | B ·sincos(SB) 9 | -------------------------------------------------------------------------------- /misc/nacl/go_nacl_386_exec: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | eval $(go env) 4 | 5 | export NACLENV_GOARCH=$GOARCH 6 | export NACLENV_GOOS=$GOOS 7 | export NACLENV_GOROOT=/go 8 | export NACLENV_NACLPWD=$(pwd | sed "s;$GOROOT;/go;") 9 | 10 | exec sel_ldr_x86_32 -l /dev/null -S -e "$@" 11 | -------------------------------------------------------------------------------- /src/math/remainder_arm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Remainder(SB),NOSPLIT,$0 8 | B ·remainder(SB) 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug083.dir/bug0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package bug0 6 | 7 | type t0 struct { 8 | } 9 | 10 | var V0 t0 11 | -------------------------------------------------------------------------------- /test/fixedbugs/bug282.dir/p1.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package p1 6 | 7 | type T struct { 8 | f func() "x" 9 | } 10 | 11 | -------------------------------------------------------------------------------- /test/fixedbugs/bug478.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package p1 6 | 7 | type S1 struct{} 8 | 9 | func (s S1) f() {} 10 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15548.dir/c.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package c 6 | 7 | import ( 8 | _ "./b" 9 | _ "./a" 10 | ) 11 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15838.dir/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package b 6 | 7 | import "./a" 8 | 9 | type T struct{ a.T } 10 | -------------------------------------------------------------------------------- /test/fixedbugs/issue5291.go: -------------------------------------------------------------------------------- 1 | // rundir 2 | 3 | // Copyright 2013 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | // Issue 5291: GC crash 8 | 9 | package ignored 10 | -------------------------------------------------------------------------------- /test/fixedbugs/issue6513.dir/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package b 6 | 7 | import "./a" 8 | 9 | type U struct{ a.T } 10 | -------------------------------------------------------------------------------- /test/fixedbugs/issue7023.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | func Foo() { 8 | goto bar 9 | bar: 10 | } 11 | -------------------------------------------------------------------------------- /misc/nacl/go_nacl_amd64p32_exec: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | eval $(go env) 4 | 5 | export NACLENV_GOARCH=$GOARCH 6 | export NACLENV_GOOS=$GOOS 7 | export NACLENV_GOROOT=/go 8 | export NACLENV_NACLPWD=$(pwd | sed "s;$GOROOT;/go;") 9 | 10 | exec sel_ldr_x86_64 -l /dev/null -S -e "$@" 11 | -------------------------------------------------------------------------------- /src/cmd/dist/sys_default.go: -------------------------------------------------------------------------------- 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 | // +build !windows 6 | 7 | package main 8 | 9 | func sysinit() { 10 | } 11 | -------------------------------------------------------------------------------- /src/cmd/vet/all/whitelist/plan9_amd64.txt: -------------------------------------------------------------------------------- 1 | // plan9/amd64-specific vet whitelist. See readme.txt for details. 2 | 3 | runtime/sys_plan9_amd64.s: [amd64] setldt: function setldt missing Go declaration 4 | runtime/sys_plan9_amd64.s: [amd64] settls: function settls missing Go declaration 5 | -------------------------------------------------------------------------------- /src/go/doc/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 | # Script to test heading detection heuristic 6 | headscan: headscan.go 7 | go build headscan.go 8 | -------------------------------------------------------------------------------- /src/math/remainder_amd64.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·Remainder(SB),NOSPLIT,$0 8 | JMP ·remainder(SB) 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug191.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 | // Tests bug with dot imports. 8 | 9 | package ignored 10 | -------------------------------------------------------------------------------- /test/fixedbugs/bug306.dir/p1.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package p1 6 | 7 | type T <-chan int 8 | var x = make(chan T) 9 | 10 | -------------------------------------------------------------------------------- /test/fixedbugs/bug415.dir/prog.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | import "./p" 7 | func main() {} 8 | var _ p.A 9 | 10 | -------------------------------------------------------------------------------- /test/fixedbugs/issue11053.dir/p.go: -------------------------------------------------------------------------------- 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 | package p 6 | 7 | func Int32(i int32) *int32 { 8 | return &i 9 | } 10 | -------------------------------------------------------------------------------- /test/fixedbugs/issue7023.dir/b.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 b 6 | 7 | import ( 8 | "./a" 9 | ) 10 | 11 | var f = a.Foo 12 | -------------------------------------------------------------------------------- /test/import4.dir/empty.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 empty 6 | 7 | import ( ) 8 | const ( ) 9 | var ( ) 10 | type ( ) 11 | -------------------------------------------------------------------------------- /misc/cgo/test/issue5740a.c: -------------------------------------------------------------------------------- 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 | static int volatile val = 2; 6 | 7 | int test5740a() { 8 | return val; 9 | } 10 | -------------------------------------------------------------------------------- /misc/cgo/test/issue5740b.c: -------------------------------------------------------------------------------- 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 | static int volatile val = 3; 6 | 7 | int test5740b() { 8 | return val; 9 | } 10 | -------------------------------------------------------------------------------- /misc/cgo/test/issue9400/stubs.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 issue9400 6 | 7 | var Baton int32 8 | 9 | func RewindAndSetgid() 10 | -------------------------------------------------------------------------------- /src/cmd/vet/testdata/tagtest/file1.go: -------------------------------------------------------------------------------- 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 | // +build testtag 6 | 7 | package main 8 | 9 | func main() { 10 | } 11 | -------------------------------------------------------------------------------- /src/vendor/golang_org/x/net/route/syscall.s: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | TEXT ·keepAlive(SB),NOSPLIT,$0 8 | RET 9 | -------------------------------------------------------------------------------- /test/fixedbugs/bug133.dir/bug1.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package bug1 6 | 7 | import "./bug0" 8 | 9 | type T struct { t bug0.T } 10 | -------------------------------------------------------------------------------- /test/fixedbugs/bug169.go: -------------------------------------------------------------------------------- 1 | // errorcheck 2 | 3 | // Copyright 2009 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package main 8 | var x = '''; // ERROR "char" 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/fixedbugs/bug224.go: -------------------------------------------------------------------------------- 1 | // errorcheck 2 | 3 | // Copyright 2009 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package main 8 | 9 | type T T // ERROR "recursive" 10 | 11 | -------------------------------------------------------------------------------- /test/fixedbugs/bug492.go: -------------------------------------------------------------------------------- 1 | // rundir 2 | 3 | // Copyright 2014 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 | // Test case that gccgo failed to link. 8 | 9 | package ignored 10 | -------------------------------------------------------------------------------- /test/fixedbugs/issue14652.go: -------------------------------------------------------------------------------- 1 | // errorcheck 2 | 3 | // Copyright 2016 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package p 8 | 9 | var x any // ERROR "undefined: any" 10 | -------------------------------------------------------------------------------- /test/fixedbugs/issue5125.dir/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import _ "./bug" 8 | 9 | func main() { 10 | } 11 | -------------------------------------------------------------------------------- /test/import2.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 | // Tests that export data does not corrupt type syntax. 8 | package ignored 9 | -------------------------------------------------------------------------------- /src/cmd/vet/all/whitelist/plan9_arm.txt: -------------------------------------------------------------------------------- 1 | // plan9/arm-specific vet whitelist. See readme.txt for details. 2 | 3 | runtime/asm_arm.s: [arm] sigreturn: function sigreturn missing Go declaration 4 | runtime/sys_plan9_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration 5 | -------------------------------------------------------------------------------- /src/cmd/vet/testdata/tagtest/file2.go: -------------------------------------------------------------------------------- 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 | // +build !testtag 6 | 7 | package main 8 | 9 | func ignore() { 10 | } 11 | -------------------------------------------------------------------------------- /src/go/types/testdata/importdecl1b.src: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package importdecl1 6 | 7 | import . /* ERROR "imported but not used" */ "unsafe" 8 | -------------------------------------------------------------------------------- /src/mime/testdata/test.types: -------------------------------------------------------------------------------- 1 | # Copyright 2010 The Go Authors. All rights reserved. 2 | # Use of this source code is governed by a BSD-style 3 | # license that can be found in the LICENSE file. 4 | 5 | 6 | # mime package test 7 | application/test t1 # Simple test 8 | text/test t2 # Text test 9 | -------------------------------------------------------------------------------- /src/net/http/race.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 | // +build race 6 | 7 | package http 8 | 9 | func init() { 10 | raceEnabled = true 11 | } 12 | -------------------------------------------------------------------------------- /src/runtime/export_arm_test.go: -------------------------------------------------------------------------------- 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 | // Export guts for testing. 6 | 7 | package runtime 8 | 9 | var Usplit = usplit 10 | -------------------------------------------------------------------------------- /test/fixedbugs/bug313.dir/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import . "fmt" 8 | 9 | func b() { 10 | Println() 11 | } 12 | -------------------------------------------------------------------------------- /test/fixedbugs/issue15920.dir/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package a 6 | 7 | type Error error 8 | 9 | func F() Error { return nil } 10 | -------------------------------------------------------------------------------- /test/fixedbugs/issue4932.dir/state2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package state2 6 | 7 | import "./state" 8 | 9 | type Foo *state.State 10 | -------------------------------------------------------------------------------- /test/fixedbugs/issue7648.dir/b.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 b 6 | 7 | import "a" 8 | 9 | func f() { 10 | println(a.A) 11 | } 12 | -------------------------------------------------------------------------------- /misc/cgo/testplugin/src/common/common.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package common 6 | 7 | var X int 8 | 9 | func init() { 10 | X = 3 11 | } 12 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/norunexample/example_test.go: -------------------------------------------------------------------------------- 1 | package pkg_test 2 | 3 | import "os" 4 | 5 | func init() { 6 | os.Stdout.Write([]byte("File with non-runnable example was built.\n")) 7 | } 8 | 9 | func Example_test() { 10 | // This test will not be run, it has no "Output:" comment. 11 | } 12 | -------------------------------------------------------------------------------- /src/cmd/vet/all/whitelist/freebsd_arm.txt: -------------------------------------------------------------------------------- 1 | // freebsd/arm-specific vet whitelist. See readme.txt for details. 2 | 3 | runtime/asm_arm.s: [arm] sigreturn: function sigreturn missing Go declaration 4 | runtime/sys_freebsd_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration 5 | -------------------------------------------------------------------------------- /src/cmd/vet/all/whitelist/openbsd_arm.txt: -------------------------------------------------------------------------------- 1 | // openbsd/arm-specific vet whitelist. See readme.txt for details. 2 | 3 | runtime/asm_arm.s: [arm] sigreturn: function sigreturn missing Go declaration 4 | runtime/sys_openbsd_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration 5 | -------------------------------------------------------------------------------- /src/os/export_test.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 os 6 | 7 | // Export for testing. 8 | 9 | var Atime = atime 10 | var LstatP = &lstat 11 | -------------------------------------------------------------------------------- /src/sort/export_test.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 sort 6 | 7 | func Heapsort(data Interface) { 8 | heapSort(data, 0, data.Len()) 9 | } 10 | -------------------------------------------------------------------------------- /test/fixedbugs/bug233.go: -------------------------------------------------------------------------------- 1 | // compile 2 | 3 | // Copyright 2009 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package bug233 8 | import p "fmt" 9 | var _ = p.Print 10 | var fmt = 10 11 | -------------------------------------------------------------------------------- /test/fixedbugs/bug377.dir/one.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 one 6 | 7 | func Foo() (n int64, _ *int) { 8 | return 42, nil 9 | } 10 | 11 | -------------------------------------------------------------------------------- /test/fixedbugs/bug437.dir/two.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package two 6 | 7 | import "./one" 8 | 9 | type S2 struct { 10 | one.S1 11 | } 12 | -------------------------------------------------------------------------------- /test/fixedbugs/issue10219.dir/b.go: -------------------------------------------------------------------------------- 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 | package b 6 | 7 | import "./a" 8 | 9 | func F() *a.S { 10 | return &a.S{} 11 | } 12 | -------------------------------------------------------------------------------- /test/fixedbugs/issue10700.dir/other.go: -------------------------------------------------------------------------------- 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 | package other 6 | 7 | type Exported interface { 8 | Do() 9 | secret() 10 | } 11 | -------------------------------------------------------------------------------- /test/fixedbugs/issue12677.dir/p.go: -------------------------------------------------------------------------------- 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 | package p 6 | func Baz(f int) float64 { 7 | return 1 / float64(int(1)<<(uint(f))) 8 | } 9 | -------------------------------------------------------------------------------- /test/fixedbugs/issue14331.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 | // Inline function misses struct tags. 8 | 9 | package ignored 10 | -------------------------------------------------------------------------------- /test/fixedbugs/issue5260.dir/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import "./a" 8 | 9 | func main() { 10 | _ = a.BOM 11 | } 12 | -------------------------------------------------------------------------------- /test/fixedbugs/issue8060.go: -------------------------------------------------------------------------------- 1 | // compiledir 2 | 3 | // Copyright 2014 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 | // Issue 8060: internal compiler error. 8 | 9 | package ignored 10 | -------------------------------------------------------------------------------- /test/intrinsic.go: -------------------------------------------------------------------------------- 1 | // errorcheckandrundir -0 -d=ssa/intrinsics/debug 2 | // +build amd64 arm64 arm s390x 3 | 4 | // Copyright 2016 The Go Authors. All rights reserved. 5 | // Use of this source code is governed by a BSD-style 6 | // license that can be found in the LICENSE file. 7 | 8 | package ignored 9 | -------------------------------------------------------------------------------- /misc/cgo/test/issue13402.go: -------------------------------------------------------------------------------- 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 | package cgotest 6 | 7 | import "C" 8 | 9 | var _ C.complexfloat 10 | var _ C.complexdouble 11 | -------------------------------------------------------------------------------- /src/cmd/go/testdata/src/vend/hello/hello_test.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "strings" // really ../vendor/strings 5 | "testing" 6 | ) 7 | 8 | func TestMsgInternal(t *testing.T) { 9 | if strings.Msg != "hello, world" { 10 | t.Fatalf("unexpected msg: %v", strings.Msg) 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /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] bsdthread_start: function bsdthread_start missing Go declaration 4 | runtime/sys_darwin_amd64.s: [amd64] settls: function settls missing Go declaration 5 | -------------------------------------------------------------------------------- /src/go/doc/testdata/f.0.golden: -------------------------------------------------------------------------------- 1 | // The package f is a go/doc test for functions and factory ... 2 | PACKAGE f 3 | 4 | IMPORTPATH 5 | testdata/f 6 | 7 | FILENAMES 8 | testdata/f.go 9 | 10 | FUNCTIONS 11 | // Exported must always be visible. Was issue 2824. 12 | func Exported() private 13 | 14 | -------------------------------------------------------------------------------- /src/go/doc/testdata/f.2.golden: -------------------------------------------------------------------------------- 1 | // The package f is a go/doc test for functions and factory ... 2 | PACKAGE f 3 | 4 | IMPORTPATH 5 | testdata/f 6 | 7 | FILENAMES 8 | testdata/f.go 9 | 10 | FUNCTIONS 11 | // Exported must always be visible. Was issue 2824. 12 | func Exported() private 13 | 14 | -------------------------------------------------------------------------------- /src/syscall/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build ppc64 s390x mips mips64 6 | 7 | package syscall 8 | 9 | const isBigEndian = true 10 | --------------------------------------------------------------------------------