Skip to content

Commit

Permalink
chore(utils): ensure go formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Thomazi Bonicontro committed Aug 29, 2018
1 parent 59cdfad commit 2f3c267
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/n26/csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ func NewCsvWriter(target io.Writer) (*csvWriter, error) {
writer := csv.NewWriter(target)
return &csvWriter{writer}, nil
}

func (w *csvWriter) WriteData(header []string, data [][]string) error {
if err := w.Write(header); err != nil {
return err
Expand Down
1 change: 1 addition & 0 deletions cmd/n26/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"encoding/json"
"fmt"

"github.com/guitmz/n26"
)

Expand Down
4 changes: 3 additions & 1 deletion cmd/n26/table.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package main

import (
"github.com/olekukonko/tablewriter"
"os"

"github.com/olekukonko/tablewriter"
)

type tblWriter struct {
Expand All @@ -12,6 +13,7 @@ type tblWriter struct {
func NewTableWriter() *tblWriter {
return &tblWriter{tablewriter.NewWriter(os.Stdout)}
}

func (table *tblWriter) WriteData(header []string, data [][]string) error {
table.SetHeader(header)
table.AppendBulk(data)
Expand Down

0 comments on commit 2f3c267

Please sign in to comment.