Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2022-02-14 15:40:49 +00:00
parent 56cdd3c583
commit 63fb62a55e
33 changed files with 1520 additions and 1175 deletions

View File

@@ -0,0 +1,17 @@
package main
import (
"fmt"
"os"
"go.m3o.com/minecraft"
)
// Ping a minecraft server
func main() {
minecraftService := minecraft.NewMinecraftService(os.Getenv("M3O_API_TOKEN"))
rsp, err := minecraftService.Ping(&minecraft.PingRequest{
Address: "funcraft.net",
})
fmt.Println(rsp, err)
}