Package ts3 implements the Teamspeak 3 ServerQuery protocol described here
- Notification handling
- Some helper functions
See the test file for a more comprehensive example
package main
import (
"darfk/ts3"
"log"
)
func main() {
client, err := ts3.NewClient("teamspeak.darfk.net:10011")
if err != nil {
log.Fatal(err)
}
// This a test user account
response, err := client.Exec(ts3.Login("test", "xWUkRRlM"))
if err != nil {
log.Fatal(err)
}
response, err = client.Exec(ts3.Version())
if err != nil {
log.Fatal(err)
}
log.Printf("version %q\n", response)
client.Close()
}
MIT