Skip to content
This repository was 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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

76cbec6 · Jun 23, 2020

History

27 Commits
Mar 20, 2020
Mar 19, 2020
Mar 19, 2020
Mar 20, 2020
Jun 23, 2020
Mar 23, 2020
Mar 19, 2020
Mar 19, 2020
Mar 19, 2020
Mar 19, 2020
Mar 19, 2020
Mar 23, 2020

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!