Skip to content

notTGY/mojango

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mojango

Mojang api golang client

This packages primary use is in https://foragingupdate.com.

So, if you need more data from mojang api, file in pull request. No NITs, typos, tests, etc.

Example Usage

package main

import (
  "fmt"
  "github.com/nottgy/mojango"
)

func main() {
  player := "<YOUR MINECRAFT NICKNAME>"
  playerResponse, _ := mojango.QueryPlayerApi(player)
  fmt.Printf("%v\n", playerResponse)

  reversePlayerResponse, _ := mojango.
    QueryReversePlayerApi(playerResponse.UUID)
  fmt.Printf("%v", reversePlayerResponse)
}

About

Mojang api golang client

Topics

Resources

License

Stars

Watchers

Forks

Languages