@@ -163,42 +163,62 @@ func EncodeTemplateAll(w io.Writer, resultSet ResultSet, opts ...Option) error {
163163 return enc .EncodeAll (w )
164164}
165165
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 {
169169 enc , err := NewHTMLEncoder (resultSet , opts ... )
170170 if err != nil {
171171 return err
172172 }
173173 return enc .Encode (w )
174174}
175175
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 {
179179 enc , err := NewHTMLEncoder (resultSet , opts ... )
180180 if err != nil {
181181 return err
182182 }
183183 return enc .EncodeAll (w )
184184}
185185
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 {
189189 enc , err := NewAsciiDocEncoder (resultSet , opts ... )
190190 if err != nil {
191191 return err
192192 }
193193 return enc .Encode (w )
194194}
195195
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 {
199199 enc , err := NewAsciiDocEncoder (resultSet , opts ... )
200200 if err != nil {
201201 return err
202202 }
203203 return enc .EncodeAll (w )
204204}
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