Skip to content

Instantly share code, notes, and snippets.

@ErikKalkoken
Last active March 21, 2022 17:51
Show Gist options
  • Save ErikKalkoken/91adb0b210e895e1e8dda53591841fb5 to your computer and use it in GitHub Desktop.
Save ErikKalkoken/91adb0b210e895e1e8dda53591841fb5 to your computer and use it in GitHub Desktop.
GoESI Example 1
package main
import (
"context"
"fmt"
"github.com/antihax/goesi"
)
func main() {
// create ESI client
client := goesi.NewAPIClient(nil, "name@example.com")
// call Status endpoint
status, _, _ := client.ESI.StatusApi.GetStatus(context.Background(), nil)
// print current status
fmt.Println("Players online: ", status.Players)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment