You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ergonomadic.go 431B

123456789101112131415161718192021222324252627
  1. package main
  2. import (
  3. "github.com/jlatt/ergonomadic/irc"
  4. "log"
  5. "sync"
  6. )
  7. func main() {
  8. config, err := irc.LoadConfig()
  9. if err != nil {
  10. log.Fatal(err)
  11. return
  12. }
  13. irc.DEBUG_NET = config.Debug["net"]
  14. irc.DEBUG_CLIENT = config.Debug["client"]
  15. irc.DEBUG_CHANNEL = config.Debug["channel"]
  16. irc.DEBUG_SERVER = config.Debug["server"]
  17. irc.NewServer(config)
  18. // never finishes
  19. wg := sync.WaitGroup{}
  20. wg.Add(1)
  21. wg.Wait()
  22. }