From dfdd87d16bdb5aac867826d454964c063d6740b9 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 16 Jun 2022 17:33:02 +0530 Subject: reading error responses from API --- user/user.structs.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'user/user.structs.go') diff --git a/user/user.structs.go b/user/user.structs.go index b730033..731588d 100644 --- a/user/user.structs.go +++ b/user/user.structs.go @@ -28,3 +28,8 @@ type UserInfo struct { TimeZone string `json:"time_zone"` IsSupporter bool `json:"is_supporter"` } + +type Error struct { + Err string `json:"error"` + Msg string `json:"message"` +} -- cgit v1.2.3