go get github.com/invliD/palworld-rcon
package main
import (
"fmt"
"log"
palworldrcon "github.com/invliD/palworld-rcon"
)
func main() {
client := palworldrcon.NewClient("127.0.0.1:25575", "password")
defer client.Close()
info, err := client.Info()
if err != nil {
log.Fatal(err)
}
fmt.Printf("Connected to server '%s' running version %s!\n", info.ServerName, info.Version)
}
MIT License, see LICENSE