示例#1
0
文件: daemon.go 项目: eaciit/knot
func main() {
	kingpin.Parse()

	knot.DefaultOutputType = knot.OutputTemplate
	knot.StartContainer(&knot.AppContainerConfig{
		Address: *flagAddress,
	})
}
示例#2
0
文件: main.go 项目: eaciit/sebar
func main() {
	kingpin.Parse()

	ks := new(knot.Server)
	ks.Address = ":" + *port
	ks.Route("/", Index)
	e = ks.Register(new(ServerController), "")
	if e != nil {
		fmt.Println("Error: " + e.Error())
		return
	}

	ks.Listen()
}