]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/fix: rewrite x/net/context by default
authorSam Whited <sam@samwhited.com>
Thu, 24 Aug 2017 17:39:34 +0000 (12:39 -0500)
committerIan Lance Taylor <iant@golang.org>
Thu, 31 Aug 2017 19:04:54 +0000 (19:04 +0000)
Since these are type aliases in Go 1.9 make rewriting
golang.org/x/net/context imports to context the default.

Change-Id: Ib7ee58b59ea5463b92e1590c8b8f5c0ef87d310b
Reviewed-on: https://go-review.googlesource.com/58590
Reviewed-by: Sameer Ajmani <sameer@golang.org>
Run-TryBot: Sam Whited <sam@samwhited.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/fix/context.go

index 926a06cccf6eab728b691af50f5b8b12fcbfcbef..1107f4d66c0ceb221d9e89f6ad836546d78d362e 100644 (file)
@@ -17,7 +17,7 @@ var contextFix = fix{
        date:     "2016-09-09",
        f:        ctxfix,
        desc:     `Change imports of golang.org/x/net/context to context`,
-       disabled: true,
+       disabled: false,
 }
 
 func ctxfix(f *ast.File) bool {