A modern and fast Golang wrapper around the Mojang API
Use the following command to download the wrapper:
go get -u github.com/Lukaesebrot/mojango
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
}
If you found a bug, have any suggestions or want to improve some code, feel free to create an issue or pull request!