This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
go version | |
perl -anE 'my $a = "\$ENV{GOOS}=\"$F[0]\"; \$ENV{GOARCH}=\"$F[1]\";"; say $a; eval $a; system("go", "build", ".")' <<'END' | |
aix ppc64 | |
android 386 | |
android amd64 | |
android arm | |
android arm64 | |
darwin 386 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/diff/parse.go b/diff/parse.go | |
index ab481d0..12b54e8 100644 | |
--- a/diff/parse.go | |
+++ b/diff/parse.go | |
@@ -136,9 +136,75 @@ func parseFileHeader(line string) (filename, timestamp string) { | |
ss := line[len(tokenOldFile)+1:] | |
tabi := strings.LastIndex(ss, "\t") | |
if tabi == -1 { | |
- return ss, "" | |
+ return unescapeCString(ss), "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/diff/parse.go b/diff/parse.go | |
index ab481d0..12b54e8 100644 | |
--- a/diff/parse.go | |
+++ b/diff/parse.go | |
@@ -136,9 +136,75 @@ func parseFileHeader(line string) (filename, timestamp string) { | |
ss := line[len(tokenOldFile)+1:] | |
tabi := strings.LastIndex(ss, "\t") | |
if tabi == -1 { | |
- return ss, "" | |
+ return unescapeCString(ss), "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import itertools | |
a = [l.rstrip() for l in sys.stdin] | |
for l in itertools.product(a, a): | |
print(''.join(l)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/buildspec.yml b/buildspec.yml | |
index 64814a4..a5de100 100644 | |
--- a/buildspec.yml | |
+++ b/buildspec.yml | |
@@ -22,5 +22,5 @@ phases: | |
fi | |
cache: | |
paths: | |
- - node_modules/**/* | |
- - vendor/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startLoad &build.Package{Dir:"/usr/local/Cellar/go/1.11.1/libexec/src/crypto", Name:"crypto", ImportComment:"", Doc:"Package crypto collects common cryptographic constants.", ImportPath:"crypto", Root:"/usr/local/Cellar/go/1.11.1/libexec", SrcRoot:"/usr/local/Cellar/go/1.11.1/libexec/src", PkgRoot:"/usr/local/Cellar/go/1.11.1/libexec/pkg", PkgTargetRoot:"/usr/local/Cellar/go/1.11.1/libexec/pkg/darwin_amd64", BinDir:"/usr/local/Cellar/go/1.11.1/libexec/bin", Goroot:true, PkgObj:"/usr/local/Cellar/go/1.11.1/libexec/pkg/darwin_amd64/crypto.a", AllTags:[]string(nil), ConflictDir:"", BinaryOnly:false, GoFiles:[]string{"crypto.go"}, CgoFiles:[]string(nil), IgnoredGoFiles:[]string(nil), InvalidGoFiles:[]string(nil), CFiles:[]string(nil), CXXFiles:[]string(nil), MFiles:[]string(nil), HFiles:[]string(nil), FFiles:[]string(nil), SFiles:[]string(nil), SwigFiles:[]string(nil), SwigCXXFiles:[]string(nil), SysoFiles:[]string(nil), CgoCFLAGS:[]string(nil), CgoCPPFLAGS:[]string(nil), CgoCXXFLAGS:[]string(nil), CgoFFLAGS:[]st |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startLoad &build.Package{Dir:"/usr/local/Cellar/go/1.11.1/libexec/src/runtime/trace", Name:"trace", ImportComment:"", Doc:"Package trace contains facilities for programs to generate traces for the Go execution tracer.", ImportPath:"runtime/trace", Root:"/usr/local/Cellar/go/1.11.1/libexec", SrcRoot:"/usr/local/Cellar/go/1.11.1/libexec/src", PkgRoot:"/usr/local/Cellar/go/1.11.1/libexec/pkg", PkgTargetRoot:"/usr/local/Cellar/go/1.11.1/libexec/pkg/darwin_amd64", BinDir:"/usr/local/Cellar/go/1.11.1/libexec/bin", Goroot:true, PkgObj:"/usr/local/Cellar/go/1.11.1/libexec/pkg/darwin_amd64/runtime/trace.a", AllTags:[]string(nil), ConflictDir:"", BinaryOnly:false, GoFiles:[]string{"annotation.go", "trace.go"}, CgoFiles:[]string(nil), IgnoredGoFiles:[]string(nil), InvalidGoFiles:[]string(nil), CFiles:[]string(nil), CXXFiles:[]string(nil), MFiles:[]string(nil), HFiles:[]string(nil), FFiles:[]string(nil), SFiles:[]string(nil), SwigFiles:[]string(nil), SwigCXXFiles:[]string(nil), SysoFiles:[]string(nil), CgoCFLAGS:[]string |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startLoad &build.Package{Dir:"/usr/local/Cellar/go/1.11.1/libexec/src/net/url", Name:"url", ImportComment:"", Doc:"Package url parses URLs and implements query escaping.", ImportPath:"net/url", Root:"/usr/local/Cellar/go/1.11.1/libexec", SrcRoot:"/usr/local/Cellar/go/1.11.1/libexec/src", PkgRoot:"/usr/local/Cellar/go/1.11.1/libexec/pkg", PkgTargetRoot:"/usr/local/Cellar/go/1.11.1/libexec/pkg/darwin_amd64", BinDir:"/usr/local/Cellar/go/1.11.1/libexec/bin", Goroot:true, PkgObj:"/usr/local/Cellar/go/1.11.1/libexec/pkg/darwin_amd64/net/url.a", AllTags:[]string(nil), ConflictDir:"", BinaryOnly:false, GoFiles:[]string{"url.go"}, CgoFiles:[]string(nil), IgnoredGoFiles:[]string(nil), InvalidGoFiles:[]string(nil), CFiles:[]string(nil), CXXFiles:[]string(nil), MFiles:[]string(nil), HFiles:[]string(nil), FFiles:[]string(nil), SFiles:[]string(nil), SwigFiles:[]string(nil), SwigCXXFiles:[]string(nil), SysoFiles:[]string(nil), CgoCFLAGS:[]string(nil), CgoCPPFLAGS:[]string(nil), CgoCXXFLAGS:[]string(nil), CgoFFLAGS:[]string |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wasm_exec.html:33 Console was cleared | |
wasm_exec.js:45 runtime: pointer 0x17e60000 to unused region of span span.base()=0x1377a000 span.limit=0x14779e00 span.state=1 | |
wasm_exec.js:45 fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?) | |
wasm_exec.js:45 | |
runtime stack: | |
wasm_exec.js:45 runtime.throw(0x486db, 0x3e) | |
wasm_exec.js:45 /usr/local/Cellar/go/1.11/libexec/src/runtime/panic.go:608 +0x6 fp=0x36b6758 sp=0x36b6730 pc=0x11b20006 | |
wasm_exec.js:45 runtime.findObject(0x17e60000, 0x0, 0x0, 0x0, 0x0, 0x0) | |
wasm_exec.js:45 /usr/local/Cellar/go/1.11/libexec/src/runtime/mbitmap.go:399 +0x42 fp=0x36b67a0 sp=0x36b6758 pc=0x10e30042 | |
wasm_exec.js:45 runtime.wbBufFlush1(0xc010000) |