diff options
Diffstat (limited to 'libgo/go/net/http/http.go')
-rw-r--r-- | libgo/go/net/http/http.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/go/net/http/http.go b/libgo/go/net/http/http.go index 89e86d8..4c5054b 100644 --- a/libgo/go/net/http/http.go +++ b/libgo/go/net/http/http.go @@ -16,6 +16,11 @@ import ( "golang.org/x/net/http/httpguts" ) +// incomparable is a zero-width, non-comparable type. Adding it to a struct +// makes that struct also non-comparable, and generally doesn't add +// any size (as long as it's first). +type incomparable [0]func() + // maxInt64 is the effective "infinite" value for the Server and // Transport's byte-limiting readers. const maxInt64 = 1<<63 - 1 |