1
0
Fork 0
forked from External/ergo

organize like a proper go package

This commit is contained in:
Jeremy Latt 2014-02-08 13:18:11 -08:00
parent f04dd7c5d5
commit b9cb539219
13 changed files with 57 additions and 123 deletions

17
ergonomadic.go Normal file
View file

@ -0,0 +1,17 @@
package main
import (
"flag"
"github.com/jlatt/ergonomadic/irc"
)
func main() {
name := flag.String("name", "localhost", "A name for the server")
listen := flag.String("listen", ":6667", "interface to listen on")
flag.BoolVar(&irc.DEBUG_NET, "dnet", false, "debug net")
flag.BoolVar(&irc.DEBUG_CLIENT, "dclient", false, "debug client")
flag.BoolVar(&irc.DEBUG_CHANNEL, "dchannel", false, "debug channel")
flag.BoolVar(&irc.DEBUG_SERVER, "dserver", false, "debug server")
flag.Parse()
irc.NewServer(*name).Listen(*listen)
}