sircd/main.go

18 lines
318 B
Go
Raw Normal View History

2019-08-19 23:30:59 +00:00
package main
2019-08-19 23:56:27 +00:00
import "log"
import "os"
2019-08-19 23:30:59 +00:00
import "sircd"
import "time"
func main() {
2019-08-19 23:56:27 +00:00
l := log.New(os.Stdout, "", log.Ldate | log.Lmicroseconds | log.Lshortfile)
l.Println("sircd starting up")
2019-08-19 23:30:59 +00:00
s := sircd.NewSircd()
2019-08-19 23:56:27 +00:00
s.SetLogger(l)
go s.Start()
2019-08-19 23:30:59 +00:00
for s.Running {
2019-08-19 23:56:27 +00:00
time.Sleep(1 * time.Second)
2019-08-19 23:30:59 +00:00
}
}