Skip to content

Unofficial API client for EarthMC in Go.

License

Notifications You must be signed in to change notification settings

EarthMC-Toolkit/EMCGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EMCGo

Unofficial wrapper for the EarthMC Dynmap and Official APIs in Golang.

Installation

Enter the following line into your project's terminal.

go get github.com/earthmc-toolkit/emcgo

Usage

import (
    emc "github.com/earthmc-toolkit/emcgo"
)

func main() {
    towns, err := emc.Aurora.Towns.All()

    if err != nil {
        fmt.Println(err.Error())
        return
    }

    fmt.Println(towns)
}