Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bsdf/lastfm
https://github.com/bsdf/lastfm
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bsdf/lastfm
- Owner: bsdf
- Created: 2012-06-23T23:59:51.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-06-24T15:14:54.000Z (over 12 years ago)
- Last Synced: 2023-03-12T00:41:36.496Z (almost 2 years ago)
- Language: Go
- Size: 83 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![](http://i.imgur.com/GQOYw.gif)
`$ go get github.com/bsdf/lastfm`
```go
package mainimport (
"github.com/bsdf/lastfm"
"fmt"
)func main() {
lastfm := lastfm.LastFM{"Y0UR_4P1_K3Y_H3R3"}
artists, err := lastfm.GetTopArtists("bsdf")
if err != nil {
fmt.Println(err.Error())
return
}topArtist := artists[0]
fmt.Println("my favorite artist is:", topArtist.Name)
}
```