Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 938 Bytes

README.md

File metadata and controls

36 lines (28 loc) · 938 Bytes

palworld-rcon

GitHub Build Go Report Card Go Reference

Install

go get github.com/invliD/palworld-rcon

Usage

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)
}

License

MIT License, see LICENSE