Last active
March 21, 2022 17:51
-
-
Save ErikKalkoken/91adb0b210e895e1e8dda53591841fb5 to your computer and use it in GitHub Desktop.
GoESI Example 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"github.com/antihax/goesi" | |
) | |
func main() { | |
// create ESI client | |
client := goesi.NewAPIClient(nil, "[email protected]") | |
// 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