You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package main
|
|
|
|
import (
|
|
"flag"
|
|
//"fmt"
|
|
"log"
|
|
//"net/http"
|
|
)
|
|
|
|
func main() {
|
|
var configfile string
|
|
flag.StringVar(&configfile, "c", "config.yaml", "config file")
|
|
flag.Parse()
|
|
c, err := loadConfig(configfile)
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
initRouters(c)
|
|
select {}
|
|
}
|