Usage example • CI Status • License
go-icecast
is a Go package for working with Icecast Admin API.
package main
import (
"fmt"
ic "pkg.re/essentialkaos/go-icecast/v2"
)
func main() {
api, err := ic.NewAPI("https://127.0.0.1:8000", "admin", "MySuppaPAssWOrd")
api.SetUserAgent("MyApp", "1.2.3")
if err != nil {
fmt.Printf("Error: %v\n", err)
return
}
stats, err := api.GetStats()
if err != nil {
fmt.Printf("Error: %v\n", err)
return
}
fmt.Println("%-v\n", stats)
}
Branch | Status |
---|---|
master (Stable) |
|
develop (Unstable) |