diff --git a/artists.go b/artists.go index be0ebd8..db762e4 100644 --- a/artists.go +++ b/artists.go @@ -5,10 +5,12 @@ import ( "net/http" ) +// ArtistService ... type ArtistService struct { api *apirequest.API } +// ArtistParams ... type ArtistParams struct { Artist_id string Sort string // year, title, format @@ -17,6 +19,7 @@ type ArtistParams struct { Per_page int } +// Artist ... type Artist struct { Namevariations []string `json:"namevariations"` Profile string `json:"profile"` @@ -30,6 +33,7 @@ type Artist struct { Members []Member `json:"members"` } +// Artistreleases ... type ArtistReleases struct { Paginastion Page `json:"pagination"` Releases []ReleaseSource `json:"releases"` @@ -41,6 +45,7 @@ func newArtistService(api *apirequest.API) *ArtistService { } } +// Artist ... func (self *ArtistService) Artist(params *ArtistParams) (*Artist, *http.Response, error) { artist := new(Artist) apiError := new(APIError) @@ -49,6 +54,7 @@ func (self *ArtistService) Artist(params *ArtistParams) (*Artist, *http.Response return artist, resp, relevantError(err, *apiError) } +// Releases ... func (self *ArtistService) Releases(params *ArtistParams) (*ArtistReleases, *http.Response, error) { releases := new(ArtistReleases) apiError := new(APIError)