Skip to content

Darfk/ts3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teamspeak 3 Server Query library for Golang

Package ts3 implements the Teamspeak 3 ServerQuery protocol described here

Features

  • Notification handling
  • Some helper functions

Example Usage

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

Licence

MIT

About

Teamspeak 3 Server Query library written in Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages