Skip to content

xStrixU/gorcon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoRcon

Simple rcon-client written in Golang using Valve RCON protocol documentation.

Installation

go get github.com/xStrixU/gorcon

Example code

package main

import (
	"fmt"
	"github.com/xStrixU/gorcon"
	"log"
)

func main() {
	rcon, err := gorcon.Connect("localhost:19132", "password")

	if err != nil {
		log.Fatal(err)
	}

	defer rcon.Close()

	response, err := rcon.SendCommand("say Hello Golang RCON!")

	if err != nil {
		log.Fatal(err)
	}

	fmt.Println("response message: " + response)
}

License

MIT License, see LICENSE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages