From 89e464443019cffd6332293eca98fdfa6b182c81 Mon Sep 17 00:00:00 2001 From: rick Date: Sat, 28 Aug 2021 21:53:12 +0200 Subject: [PATCH] feat(spotify/json): add struct error json --- struct.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/struct.go b/struct.go index c422fb9..a1d6988 100644 --- a/struct.go +++ b/struct.go @@ -1,5 +1,14 @@ package main +import "time" + +type SpotyfyError struct { + Error struct { + Status int `json:"status"` + Message string `json:"message"` + } `json:"error"` +} + type SpotifyPlaylist struct { Href string `json:"href"` Items []struct {