go-ts3 is a Go client for the TeamSpeak 3 ServerQuery Protocol.
- ServerQuery Support.
go get -u github.com/multiplay/go-ts3
Using go-ts3 is simple just create a client, login and then send commands e.g.
package main
import (
"log"
"github.com/multiplay/go-ts3"
)
func main() {
c, err := ts3.NewClient("192.168.1.102:10011")
if err != nil {
log.Fatal(err)
}
defer c.Close()
if err := c.Login(user, pass); err != nil {
log.Fatal(err)
}
if v, err := c.Version(); err != nil {
log.Fatal(err)
} else {
log.Println("server is running:", v)
}
}
go-ts3 is available under the BSD 2-Clause License.