azurlane-api / golane

Wrapper for the unofficial azur lane json api in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Report Card

golane

Wrapper for the unofficial azur lane json api in Go

Docs

https://godoc.org/github.com/azurlane-api/golane

Example

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)
	}
}

Support

discord

About

Wrapper for the unofficial azur lane json api in Go

License:GNU General Public License v3.0


Languages

Language:Go 100.0%