This repository has been archived on 2023-07-05. You can view files and clone it, but cannot push or open issues or pull requests.
clessy/mods/main.go

22 lines
325 B
Go
Raw Normal View History

2016-02-09 10:01:05 +00:00
package main
import (
"flag"
"../tg"
)
func dispatch(broker *tg.Broker, update tg.APIMessage) {
metafora(broker, update)
}
func main() {
brokerAddr := flag.String("broker", "localhost:7314", "Broker address:port")
flag.Parse()
err := tg.CreateBrokerClient(*brokerAddr, dispatch)
if err != nil {
panic(err)
}
}