Skip to content

essentialkaos/go-icecast

GoReportCard GitHub Actions CI Status GitHub Actions CodeQL Status
Codebeat badge Coverage Status

Usage exampleCI StatusLicense


go-icecast is a Go package for working with Icecast Admin API.

Usage example

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

CI Status

Branch Status
master (Stable) CI
develop (Unstable) CI

License

Apache License, Version 2.0