diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-25 17:03:28 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-25 17:03:28 +0200 |
commit | ff1f2be30896a7c01517805b7ad3473f5b4493fc (patch) | |
tree | 1a188660ea8db6f9d357c0fdf54e9f2923558ee9 | |
parent | 573ce1982da2e754947453fdaf0d50204873acb4 (diff) | |
download | feed2imap-go-ff1f2be30896a7c01517805b7ad3473f5b4493fc.tar.gz feed2imap-go-ff1f2be30896a7c01517805b7ad3473f5b4493fc.tar.bz2 feed2imap-go-ff1f2be30896a7c01517805b7ad3473f5b4493fc.zip |
Remove Feeds.String
With using `spew` this is no longer needed
Diffstat (limited to '')
-rw-r--r-- | pkg/config/feed.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/pkg/config/feed.go b/pkg/config/feed.go index 03494d3..4641cbc 100644 --- a/pkg/config/feed.go +++ b/pkg/config/feed.go @@ -1,10 +1,5 @@ package config -import ( - "fmt" - "strings" -) - // One stored feed type Feed struct { Name string @@ -15,24 +10,3 @@ type Feed struct { // Convenience type for all feeds type Feeds map[string]Feed - -func (feeds Feeds) String() string { - var b strings.Builder - app := func(a ...interface{}) { - _, _ = fmt.Fprint(&b, a...) - } - app("Feeds [") - - first := true - for k, v := range feeds { - if !first { - app(", ") - } - app(`"`, k, `"`, ": ") - _, _ = fmt.Fprintf(&b, "%+v", v) - first = false - } - app("]") - - return b.String() -} |