add base files
This commit is contained in:
26
main.go
Normal file
26
main.go
Normal file
@ -0,0 +1,26 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
"github.com/bounce-chat/go-i2p/lib/router"
|
||||
|
||||
"github.com/golang/glog"
|
||||
"flag"
|
||||
)
|
||||
|
||||
|
||||
|
||||
func main() {
|
||||
|
||||
flag.Parse()
|
||||
|
||||
glog.Info("parsing i2p router configuration")
|
||||
|
||||
glog.Info("starting up i2p router")
|
||||
r, err := router.CreateRouter()
|
||||
if err == nil {
|
||||
r.Run()
|
||||
} else {
|
||||
glog.Errorf("failed to create i2p router: %s", err)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user