Skip to content
This repository has been archived by the owner on Jan 22, 2023. It is now read-only.

unly/go-tukui

Repository files navigation

Go Report Card License CI Status Test Coverage

Golang Client for tukui.org

Simple Golang client for the TukUI API to fetch the hosted addons. Supports both classic and retail addons.

Install

go get github.com/unly/go-tukui

How to Use

Create a new client for the TukUI API. Optionally, you can pass a pointer to a http.Client. Otherwise the default client is used.

client := tukui.NewClient(nil)

Query for a specific addon using its ID, e.g. 3.

addon, resp, err := client.ClassicAddons.GetAddon(3)

Or query all available addons.

addons, resp, err := client.ClassicAddons.GetAddons()

For the TukUI and the ElvUI there are dedicated functions. In the case of TukUI there is;

tukui, resp, err := client.ClassicAddons.GetTukUI()

and respectively:

elvui, resp, err := client.ClassicAddons.GetElvUI()

All API queries return the Addon struct.

License

Licensed under the MIT license.