package main import ( "github.com/zeevdiukman/go-helper" "github.com/zeevdiukman/go-zgate" ) // main is the entry point of the z application. // It initializes and configures the application, sets up entry points, // configures routers, and starts the servers. It also starts test HTTP servers // for demonstration purposes. func main() { helper.AppRunner(true, func() { helper.Clear() zGate := zgate.New() zGate.BuildActiveEntryPoints() zGate.BuildRouters() zGate.ListenAndServe() helper.StartTestHTTPServer(3001, "app1") helper.StartTestHTTPServer(3002, "app2") }) }