Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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. }