go-dev-zprox-0.01/main.go
Zeev Diukman b4088175a2 update
2025-03-07 07:33:12 +00:00

22 lines
589 B
Go

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")
})
}