@@ -65,9 +65,9 @@ func ExecuteFunc(template, startTag, endTag string, w io.Writer, f TagFunc) (int
65
65
// values from the map m and writes the result to the given writer w.
66
66
//
67
67
// Substitution map m may contain values with the following types:
68
- // * []byte - the fastest value type
69
- // * string - convenient value type
70
- // * TagFunc - flexible value type
68
+ // - []byte - the fastest value type
69
+ // - string - convenient value type
70
+ // - TagFunc - flexible value type
71
71
//
72
72
// Returns the number of bytes written to w.
73
73
//
@@ -81,9 +81,9 @@ func Execute(template, startTag, endTag string, w io.Writer, m map[string]interf
81
81
// This can be used as a drop-in replacement for strings.Replacer
82
82
//
83
83
// Substitution map m may contain values with the following types:
84
- // * []byte - the fastest value type
85
- // * string - convenient value type
86
- // * TagFunc - flexible value type
84
+ // - []byte - the fastest value type
85
+ // - string - convenient value type
86
+ // - TagFunc - flexible value type
87
87
//
88
88
// Returns the number of bytes written to w.
89
89
//
@@ -135,9 +135,9 @@ var byteBufferPool bytebufferpool.Pool
135
135
// values from the map m and returns the result.
136
136
//
137
137
// Substitution map m may contain values with the following types:
138
- // * []byte - the fastest value type
139
- // * string - convenient value type
140
- // * TagFunc - flexible value type
138
+ // - []byte - the fastest value type
139
+ // - string - convenient value type
140
+ // - TagFunc - flexible value type
141
141
//
142
142
// This function is optimized for constantly changing templates.
143
143
// Use Template.ExecuteString for frozen templates.
@@ -149,9 +149,9 @@ func ExecuteString(template, startTag, endTag string, m map[string]interface{})
149
149
// This can be used as a drop-in replacement for strings.Replacer
150
150
//
151
151
// Substitution map m may contain values with the following types:
152
- // * []byte - the fastest value type
153
- // * string - convenient value type
154
- // * TagFunc - flexible value type
152
+ // - []byte - the fastest value type
153
+ // - string - convenient value type
154
+ // - TagFunc - flexible value type
155
155
//
156
156
// This function is optimized for constantly changing templates.
157
157
// Use Template.ExecuteStringStd for frozen templates.
@@ -305,9 +305,9 @@ func (t *Template) ExecuteFunc(w io.Writer, f TagFunc) (int64, error) {
305
305
// values from the map m and writes the result to the given writer w.
306
306
//
307
307
// Substitution map m may contain values with the following types:
308
- // * []byte - the fastest value type
309
- // * string - convenient value type
310
- // * TagFunc - flexible value type
308
+ // - []byte - the fastest value type
309
+ // - string - convenient value type
310
+ // - TagFunc - flexible value type
311
311
//
312
312
// Returns the number of bytes written to w.
313
313
func (t * Template ) Execute (w io.Writer , m map [string ]interface {}) (int64 , error ) {
@@ -318,9 +318,9 @@ func (t *Template) Execute(w io.Writer, m map[string]interface{}) (int64, error)
318
318
// This can be used as a drop-in replacement for strings.Replacer
319
319
//
320
320
// Substitution map m may contain values with the following types:
321
- // * []byte - the fastest value type
322
- // * string - convenient value type
323
- // * TagFunc - flexible value type
321
+ // - []byte - the fastest value type
322
+ // - string - convenient value type
323
+ // - TagFunc - flexible value type
324
324
//
325
325
// Returns the number of bytes written to w.
326
326
func (t * Template ) ExecuteStd (w io.Writer , m map [string ]interface {}) (int64 , error ) {
@@ -366,9 +366,9 @@ func (t *Template) ExecuteFuncStringWithErr(f TagFunc) (string, error) {
366
366
// values from the map m and returns the result.
367
367
//
368
368
// Substitution map m may contain values with the following types:
369
- // * []byte - the fastest value type
370
- // * string - convenient value type
371
- // * TagFunc - flexible value type
369
+ // - []byte - the fastest value type
370
+ // - string - convenient value type
371
+ // - TagFunc - flexible value type
372
372
//
373
373
// This function is optimized for frozen templates.
374
374
// Use ExecuteString for constantly changing templates.
@@ -380,9 +380,9 @@ func (t *Template) ExecuteString(m map[string]interface{}) string {
380
380
// This can be used as a drop-in replacement for strings.Replacer
381
381
//
382
382
// Substitution map m may contain values with the following types:
383
- // * []byte - the fastest value type
384
- // * string - convenient value type
385
- // * TagFunc - flexible value type
383
+ // - []byte - the fastest value type
384
+ // - string - convenient value type
385
+ // - TagFunc - flexible value type
386
386
//
387
387
// This function is optimized for frozen templates.
388
388
// Use ExecuteStringStd for constantly changing templates.
0 commit comments