From 1078d876c98e6e46b8246f66ea748e5d6ba3812d Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Sat, 25 Jun 2016 22:42:56 +0200 Subject: [PATCH] Add additional score info in FixtureResult. - Adds struct FixtureScore which is essentially a copy of the old FixtureResult. - Adds fields HalfTime, ExtraTime and PenaltyShootout to FixtureResult, all containing FixtureScore instances or nil if non-existent. --- api_types.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api_types.go b/api_types.go index 470559a..a361b83 100644 --- a/api_types.go +++ b/api_types.go @@ -86,6 +86,14 @@ type FixturesResponse struct { // Contains information about a fixture's results. type FixtureResult struct { + FixtureScore + + HalfTime *FixtureScore + ExtraTime *FixtureScore + PenaltyShootout *FixtureScore +} + +type FixtureScore struct { GoalsHomeTeam uint16 GoalsAwayTeam uint16 }