Ustream live status
Get the ustream live status.
Installing
$ go get -u github.com/utahta/ustream-live-status/cmd/uststat
Usage
$ uststat -h
Usage of uststat:
-name string
Specifies the ustream channel name
$ uststat -name iss-hdev-payload
live
$ uststat -name momoclotv
offline
Example
package main
import (
"log"
"github.com/utahta/ustream-live-status"
)
func main() {
c, err := uststat.New()
if err != nil {
log.Fatal(err)
}
live, err := c.IsLive("iss-hdev-payload")
if err != nil {
log.Fatal(err)
}
log.Print(live)
}
Contributing
- Fork it ( https://github.com/utahta/uststat/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request