$ # go run dlMulti.go urls...
$ go run dlMulti.go https://google.ca https://blog.golang.org https://twitter.com
This file contains hidden or 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
| # cat coverage.diff | grep '^\(-\|+\)' > actualDifferences.diff | |
| --- h2-fileserver-coverage 2015-12-29 05:13:58.000000000 -0700 | |
| +++ master-coverage 2015-12-29 05:13:29.000000000 -0700 | |
| @@ -196,7 +196,7 @@ | |
| -net/http/h2_bundle.go:2423: state 66.7% | |
| +net/http/h2_bundle.go:2423: state 0.0% | |
| @@ -222,10 +222,10 @@ | |
| -net/http/h2_bundle.go:3016: processFrame 50.0% | |
| +net/http/h2_bundle.go:3016: processFrame 45.5% | |
| -net/http/h2_bundle.go:3095: processResetStream 62.5% |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "image/gif" | |
| "net/http" | |
| "os" | |
| ) | |
| func decodeGIF(url string) (*gif.GIF, error) { |
diff --git a/src/encoding/json/encode.go b/src/encoding/json/encode.go
index 927f47b..0afa561 100644
--- a/src/encoding/json/encode.go
+++ b/src/encoding/json/encode.go
@@ -1123,29 +1123,33 @@ func typeFields(t reflect.Type) []field {
sort.Sort(byName(fields))
+ nameCache := map[string][]field{}
This file contains hidden or 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
| package main | |
| import ( | |
| "crypto/tls" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "os" | |
| "strings" |
This file contains hidden or 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
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "mime/multipart" | |
| "net/http" | |
| "os" | |
| ) |
This file contains hidden or 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
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "io" | |
| "os" | |
| "github.com/odeke-em/drive/src/dcrypto" | |
| ) |
This file contains hidden or 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
| package main | |
| import ( | |
| "crypto/tls" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "net/http" |
This file contains hidden or 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
| package io_vs_os_test | |
| import ( | |
| "io" | |
| "io/ioutil" | |
| "os" | |
| "testing" | |
| ) | |
| var ( |
This file contains hidden or 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
| package mcopy | |
| import ( | |
| "io" | |
| ) | |
| func DuplicateToManyStreams(r io.Reader, n uint) ([]io.Reader, chan bool) { | |
| var readers []io.Reader | |
| var writers []io.Writer |