From 8984dc3ca7dc72a1cf563ccc6fc85fbeb231117e Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 19 Apr 2020 01:12:25 +0200 Subject: Fetching and parsing the feeds --- internal/util/util.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 internal/util/util.go (limited to 'internal/util') diff --git a/internal/util/util.go b/internal/util/util.go new file mode 100644 index 0000000..54a0805 --- /dev/null +++ b/internal/util/util.go @@ -0,0 +1,17 @@ +package util + +import ( + "log" + "os" +) + +var errorLogger = log.New(os.Stderr, "ERROR ", log.LstdFlags|log.Lmsgprefix) + +func Error(v ...interface{}) { + errorLogger.Print(v...) +} + +//noinspection GoUnusedExportedFunction +func Errorf(format string, a ...interface{}) { + errorLogger.Printf(format, a...) +} -- cgit v1.2.3-70-g09d2