package main import ( "sig-pub/internal/gateway" "sig-pub/pkg/config" ) type GateConf struct { HttpAddr string WsAddr string } // http 网关 func main() { gateConf := config.MustLoadConfig(new(GateConf), "config/gate.toml") server := gateway.Route() err := server.Run(gateConf.HttpAddr) if err != nil { panic(err) } }