func main() { if showHelp { flag.PrintDefaults() return } //ext.TraceSwitch = true connector := god.NewConnector(NewRobotAgent) for i := 0; i < amount; i++ { connector.Dial(serverAddress) } god.Console().Run() }
func main() { if showHelp { flag.PrintDefaults() return } if trace { ext.TraceSwitch = true } god.StartNode(listenString) acceptor := god.NewAcceptor(agentString, NewClientAgent) if noshell { c := make(chan os.Signal) <-c god.Quit() } else { god.Console().Run() acceptor.Stop() } }