package main import ( "flag" "homestead/homestead_gateway/shared" "homestead/homestead_gateway/util/config" ) func main() { cfgPath := flag.String("config", "config.toml", "configuration file") cfg, err := config.LoadConfig(*cfgPath) if err != nil { panic(err) } controller := shared.NewGatewayController(*cfg) controller.Run() }