forked from External/ergo
organize like a proper go package
This commit is contained in:
parent
f04dd7c5d5
commit
b9cb539219
13 changed files with 57 additions and 123 deletions
17
ergonomadic.go
Normal file
17
ergonomadic.go
Normal 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue