Skip to content

Wrapper for the unofficial azur lane json api in Go

License

Notifications You must be signed in to change notification settings

azurlane-api/golane

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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