Removed fmt.Stringer artistry from all roouter and table structs

This commit is contained in:
Milos Gajdos
2019-07-09 16:17:18 +01:00
parent c5fb409760
commit 23cb811f60
5 changed files with 7 additions and 120 deletions

View File

@@ -3,10 +3,7 @@ package table
import (
"errors"
"fmt"
"strings"
"time"
"github.com/olekukonko/tablewriter"
)
var (
@@ -125,18 +122,5 @@ func (w *tableWatcher) Stop() {
// String prints debug information
func (w tableWatcher) String() string {
sb := &strings.Builder{}
table := tablewriter.NewWriter(sb)
table.SetHeader([]string{"Service"})
data := []string{
w.opts.Service,
}
table.Append(data)
// render table into sb
table.Render()
return sb.String()
return "watcher"
}