summaryrefslogtreecommitdiff
path: root/src/cmd/gofix/httpfs.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/gofix/httpfs.go')
-rw-r--r--src/cmd/gofix/httpfs.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cmd/gofix/httpfs.go b/src/cmd/gofix/httpfs.go
index 7f2765680..625dd0f7d 100644
--- a/src/cmd/gofix/httpfs.go
+++ b/src/cmd/gofix/httpfs.go
@@ -9,8 +9,13 @@ import (
"go/token"
)
+func init() {
+ register(httpFileSystemFix)
+}
+
var httpFileSystemFix = fix{
"httpfs",
+ "2011-06-27",
httpfs,
`Adapt http FileServer to take a FileSystem.
@@ -18,10 +23,6 @@ http://codereview.appspot.com/4629047 http FileSystem interface
`,
}
-func init() {
- register(httpFileSystemFix)
-}
-
func httpfs(f *ast.File) bool {
if !imports(f, "http") {
return false