diff options
Diffstat (limited to 'src/cmd/gofix/httpserver.go')
| -rw-r--r-- | src/cmd/gofix/httpserver.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cmd/gofix/httpserver.go b/src/cmd/gofix/httpserver.go index 37866e88b..7aa651786 100644 --- a/src/cmd/gofix/httpserver.go +++ b/src/cmd/gofix/httpserver.go @@ -9,8 +9,13 @@ import ( "go/token" ) +func init() { + register(httpserverFix) +} + var httpserverFix = fix{ "httpserver", + "2011-03-15", httpserver, `Adapt http server methods and functions to changes made to the http ResponseWriter interface. @@ -22,10 +27,6 @@ http://codereview.appspot.com/4248075 RemoteAddr, UsingTLS `, } -func init() { - register(httpserverFix) -} - func httpserver(f *ast.File) bool { if !imports(f, "http") { return false |
