vendor/golang.org/x/net/context/: fix fmt with Go 1.8

See https://github.com/golang/go/issues/21337
This commit is contained in:
Dmitry Vyukov 2017-08-10 14:23:29 +02:00
parent 32e992a642
commit 4bd26193d8
2 changed files with 4 additions and 3 deletions

View File

@ -2,10 +2,12 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build go1.9
// This is broken, see https://github.com/golang/go/issues/21337
// +build
package context
/*
import "context" // standard library's context, as of Go 1.7
// A Context carries a deadline, a cancelation signal, and other values across
@ -18,3 +20,4 @@ type Context = context.Context
// A CancelFunc does not wait for the work to stop.
// After the first call, subsequent calls to a CancelFunc do nothing.
type CancelFunc = context.CancelFunc
*/

View File

@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !go1.9
package context
import "time"