From 756919d533c8be6b4741a8ffb275de1fbd71c8f6 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 23 Dec 2017 11:34:14 +0100 Subject: [PATCH] Print Deviations after the table --- statusscreen-sl.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/statusscreen-sl.go b/statusscreen-sl.go index fe56ba7..aa1c45b 100644 --- a/statusscreen-sl.go +++ b/statusscreen-sl.go @@ -78,6 +78,11 @@ func (sl *SL) GetOutput() []string { table.Render() + // Go through deviations and add it after the table + for _, v := range sl.lastResponse.ResponseData.StopPointDeviations { + b.WriteString(v.Deviation.Text + "\n") + } + return strings.Split(b.String(), "\n") }