Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(421)

Unified Diff: src/cmd/gofix/template.go

Issue 5448088: code review 5448088: cmd: shorten composite literal field values (Closed)
Patch Set: diff -r f91f50b96e10 https://go.googlecode.com/hg/ Created 12 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)",

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b