/
datatypes.go
84 lines (81 loc) · 2.46 KB
/
datatypes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package datatypes
type Track struct {
title string
artist string
runtime string
}
type Album struct {
AlbumType string `json:"album_type"`
Artists []struct {
ExternalUrls struct {
Spotify string `json:"spotify"`
} `json:"external_urls"`
Href string `json:"href"`
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
URI string `json:"uri"`
} `json:"artists"`
AvailableMarkets []string `json:"available_markets"`
Copyrights []struct {
Text string `json:"text"`
Type string `json:"type"`
} `json:"copyrights"`
ExternalIds struct {
Upc string `json:"upc"`
} `json:"external_ids"`
ExternalUrls struct {
Spotify string `json:"spotify"`
} `json:"external_urls"`
Genres []interface{} `json:"genres"`
Href string `json:"href"`
ID string `json:"id"`
Images []struct {
Height int64 `json:"height"`
URL string `json:"url"`
Width int64 `json:"width"`
} `json:"images"`
Label string `json:"label"`
Name string `json:"name"`
Popularity int64 `json:"popularity"`
ReleaseDate string `json:"release_date"`
ReleaseDatePrecision string `json:"release_date_precision"`
TotalTracks int64 `json:"total_tracks"`
Tracks struct {
Href string `json:"href"`
Items []struct {
Artists []struct {
ExternalUrls struct {
Spotify string `json:"spotify"`
} `json:"external_urls"`
Href string `json:"href"`
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
URI string `json:"uri"`
} `json:"artists"`
AvailableMarkets []string `json:"available_markets"`
DiscNumber int64 `json:"disc_number"`
DurationMs int64 `json:"duration_ms"`
Explicit bool `json:"explicit"`
ExternalUrls struct {
Spotify string `json:"spotify"`
} `json:"external_urls"`
Href string `json:"href"`
ID string `json:"id"`
IsLocal bool `json:"is_local"`
Name string `json:"name"`
PreviewURL string `json:"preview_url"`
TrackNumber int64 `json:"track_number"`
Type string `json:"type"`
URI string `json:"uri"`
} `json:"items"`
Limit int64 `json:"limit"`
Next interface{} `json:"next"`
Offset int64 `json:"offset"`
Previous interface{} `json:"previous"`
Total int64 `json:"total"`
} `json:"tracks"`
Type string `json:"type"`
URI string `json:"uri"`
}