Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bsdf/lastfm


https://github.com/bsdf/lastfm

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        

![](http://i.imgur.com/GQOYw.gif)

`$ go get github.com/bsdf/lastfm`

```go
package main

import (
"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)
}
```