@@ -163,42 +163,62 @@ func EncodeTemplateAll(w io.Writer, resultSet ResultSet, opts ...Option) error {
163
163
return enc .EncodeAll (w )
164
164
}
165
165
166
- // EncodeHTMLTemplate encodes the result set to the writer using the html
167
- // template and the supplied encoding options.
168
- func EncodeHTMLTemplate (w io.Writer , resultSet ResultSet , opts ... Option ) error {
166
+ // EncodeHTML encodes the result set to the writer using the html template and
167
+ // the supplied encoding options.
168
+ func EncodeHTML (w io.Writer , resultSet ResultSet , opts ... Option ) error {
169
169
enc , err := NewHTMLEncoder (resultSet , opts ... )
170
170
if err != nil {
171
171
return err
172
172
}
173
173
return enc .Encode (w )
174
174
}
175
175
176
- // EncodeHTMLTemplate encodes the result set to the writer using the html
177
- // template and the supplied encoding options.
178
- func EncodeHTMLTemplateAll (w io.Writer , resultSet ResultSet , opts ... Option ) error {
176
+ // EncodeHTML encodes the result set to the writer using the html template and
177
+ // the supplied encoding options.
178
+ func EncodeHTMLAll (w io.Writer , resultSet ResultSet , opts ... Option ) error {
179
179
enc , err := NewHTMLEncoder (resultSet , opts ... )
180
180
if err != nil {
181
181
return err
182
182
}
183
183
return enc .EncodeAll (w )
184
184
}
185
185
186
- // EncodeAsciiDocTemplate encodes the result set to the writer using the
187
- // asciidoc template and the supplied encoding options.
188
- func EncodeAsciiDocTemplate (w io.Writer , resultSet ResultSet , opts ... Option ) error {
186
+ // EncodeAsciiDoc encodes the result set to the writer using the asciidoc
187
+ // template and the supplied encoding options.
188
+ func EncodeAsciiDoc (w io.Writer , resultSet ResultSet , opts ... Option ) error {
189
189
enc , err := NewAsciiDocEncoder (resultSet , opts ... )
190
190
if err != nil {
191
191
return err
192
192
}
193
193
return enc .Encode (w )
194
194
}
195
195
196
- // EncodeAsciiDocTemplate encodes the result set to the writer using the
197
- // asciidoc template and the supplied encoding options.
198
- func EncodeAsciiDocTemplateAll (w io.Writer , resultSet ResultSet , opts ... Option ) error {
196
+ // EncodeAsciiDoc encodes the result set to the writer using the asciidoc
197
+ // template and the supplied encoding options.
198
+ func EncodeAsciiDocAll (w io.Writer , resultSet ResultSet , opts ... Option ) error {
199
199
enc , err := NewAsciiDocEncoder (resultSet , opts ... )
200
200
if err != nil {
201
201
return err
202
202
}
203
203
return enc .EncodeAll (w )
204
204
}
205
+
206
+ // EncodeVertical encodes the result set to the writer using the vertical
207
+ // template and the supplied encoding options.
208
+ func EncodeVertical (w io.Writer , resultSet ResultSet , opts ... Option ) error {
209
+ enc , err := NewVerticalEncoder (resultSet , opts ... )
210
+ if err != nil {
211
+ return err
212
+ }
213
+ return enc .Encode (w )
214
+ }
215
+
216
+ // EncodeVertical encodes the result set to the writer using the vertical
217
+ // template and the supplied encoding options.
218
+ func EncodeVerticalAll (w io.Writer , resultSet ResultSet , opts ... Option ) error {
219
+ enc , err := NewVerticalEncoder (resultSet , opts ... )
220
+ if err != nil {
221
+ return err
222
+ }
223
+ return enc .EncodeAll (w )
224
+ }
0 commit comments