Wrapper for the unofficial azur lane json api in Go
https://godoc.org/github.com/azurlane-api/golane
package main
import (
"fmt"
"github.com/azurlane-api/golane"
)
func main() {
var azurlane = new(golane.AzurLane)
azurlane.Init("custom_ua/v0.1.0")
ships, err := azurlane.GetShips(golane.Order.RARITY, "Super Rare")
if err != nil {
fmt.Printf("Something bad happened:\n%s", err.Error())
return
}
for i := 0; i < len(ships); i++ {
fmt.Printf("[%s]: %s\n", ships[i].ID, ships[i].Name)
}
}