Index: src/cmd/gofix/template.go |
=================================================================== |
--- a/src/cmd/gofix/template.go |
+++ b/src/cmd/gofix/template.go |
@@ -39,9 +39,9 @@ |
} |
var templateTypeConfig = &TypeConfig{ |
- Type: map[string]*Type{ |
+ Type: { |
gri
2011/12/02 23:11:05
I'd leave this file alone - no real win
|
"template.Template": { |
- Method: map[string]string{ |
+ Method: { |
"Funcs": "func() *template.Template", |
"Delims": "func() *template.Template", |
"Parse": "func() (*template.Template, error)", |
@@ -50,7 +50,7 @@ |
}, |
}, |
"template.Set": { |
- Method: map[string]string{ |
+ Method: { |
"ParseSetFiles": "func() (*template.Set, error)", |
"ParseSetGlob": "func() (*template.Set, error)", |
"ParseTemplateFiles": "func() (*template.Set, error)", |
@@ -59,7 +59,7 @@ |
}, |
}, |
- Func: map[string]string{ |
+ Func: { |
"template.New": "*template.Template", |
"template.Must": "(*template.Template, error)", |
"template.SetMust": "(*template.Set, error)", |