summaryrefslogtreecommitdiff
path: root/go/internal/command/reporting/reporter.go
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2019-03-14 14:01:42 +0100
committerBob Van Landuyt <bob@vanlanduyt.co>2019-03-15 18:03:35 +0100
commit83c0f18e1de04b3bad9c424084e738e911c47336 (patch)
tree22d69b9450693bb153e58dbe8b7cd6feb3f8e1e0 /go/internal/command/reporting/reporter.go
parent53511f3655a5eed9976164fbd88d14df3490000c (diff)
downloadgitlab-shell-83c0f18e1de04b3bad9c424084e738e911c47336.tar.gz
Wrap Stderr & Stdout in a reporter struct
The reporter struct can be used for passing around and reporting to the io.Writer of choice.
Diffstat (limited to 'go/internal/command/reporting/reporter.go')
-rw-r--r--go/internal/command/reporting/reporter.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/go/internal/command/reporting/reporter.go b/go/internal/command/reporting/reporter.go
new file mode 100644
index 0000000..74bca59
--- /dev/null
+++ b/go/internal/command/reporting/reporter.go
@@ -0,0 +1,8 @@
+package reporting
+
+import "io"
+
+type Reporter struct {
+ Out io.Writer
+ ErrOut io.Writer
+}