func main() { kingpin.Parse() knot.DefaultOutputType = knot.OutputTemplate knot.StartContainer(&knot.AppContainerConfig{ Address: *flagAddress, }) }
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() }