Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.
/ mojango Public archive

A modern and fast Golang wrapper around the Mojang API

License

Notifications You must be signed in to change notification settings

lus/mojango

Repository files navigation

go.dev reference Go

mojango

A modern and fast Golang wrapper around the Mojang API

Installation

Use the following command to download the wrapper:

go get -u github.com/Lukaesebrot/mojango

Usage

Before you can use the wrapper, you need to create a client:

func main() {
    // Create a new mojango client
    client := mojango.New()
}

Using this client, you can now use the wrapper's functions as you like:

func main() {
    // Create a new mojango client
    client := mojango.New()
    
    // Fetch a player's UUID
    uuid, err := client.FetchUUID("ksebrt"); if err != nil {
        panic(err)
    }
    fmt.Println(uuid) // Output: 39cc0f91869a486494160d610f18b993
}

Contribution/Help

If you found a bug, have any suggestions or want to improve some code, feel free to create an issue or pull request!