Get the ustream live status.
$ go get -u github.com/utahta/ustream-live-status/cmd/uststat
$ uststat -h
Usage of uststat:
-name string
Specifies the ustream channel name
$ uststat -name iss-hdev-payload
live
$ uststat -name momoclotv
offline
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)
}
- 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