diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-06-16 17:33:02 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-06-16 17:33:02 +0530 |
commit | dfdd87d16bdb5aac867826d454964c063d6740b9 (patch) | |
tree | 96c8925222ab7ca69aed2b13c1139f169704af18 /user/user.structs.go | |
parent | cf32370298596c8d83c31f792fa66672366f2768 (diff) |
reading error responses from API
Diffstat (limited to 'user/user.structs.go')
-rw-r--r-- | user/user.structs.go | 5 |
1 files changed, 5 insertions, 0 deletions
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"` +} |