The reconcile package is used for DOM reconcilation in Isomorphic Go web applications.

not_go18.go 632B

1234567891011121314151617181920212223242526272829
  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. // +build !go1.8
  5. package http2
  6. import (
  7. "io"
  8. "net/http"
  9. )
  10. func configureServer18(h1 *http.Server, h2 *Server) error {
  11. // No IdleTimeout to sync prior to Go 1.8.
  12. return nil
  13. }
  14. func shouldLogPanic(panicValue interface{}) bool {
  15. return panicValue != nil
  16. }
  17. func reqGetBody(req *http.Request) func() (io.ReadCloser, error) {
  18. return nil
  19. }
  20. func reqBodyIsNoBody(io.ReadCloser) bool { return false }
  21. func go18httpNoBody() io.ReadCloser { return nil } // for tests only