Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/invlid/palworld-rcon

A golang library for interacting with Palworld RCON servers
https://github.com/invlid/palworld-rcon

library palworld palworld-rcon rcon

Last synced: about 2 months ago
JSON representation

A golang library for interacting with Palworld RCON servers

Awesome Lists containing this project

README

        

# palworld-rcon
[![GitHub Build](https://github.com/invliD/palworld-rcon/actions/workflows/go.yml/badge.svg?branch=master)](https://github.com/invliD/palworld-rcon/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/invliD/palworld-rcon)](https://goreportcard.com/report/github.com/invliD/palworld-rcon)
[![Go Reference](https://pkg.go.dev/badge/github.com/invliD/palworld-rcon.svg)](https://pkg.go.dev/github.com/invliD/palworld-rcon)

## Install
```shell
go get github.com/invliD/palworld-rcon
```

## Usage
```go
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](LICENSE)