proxyport/main.go

20 lines
333 B
Go

package main
import (
"flag"
"git.makemake.in/kzkzzzz/mycommon/myconf"
"git.makemake.in/kzkzzzz/mycommon/mylog"
"proxyport/app"
)
var configPath string
func main() {
flag.StringVar(&configPath, "c", "config.toml", "配置文件路径")
flag.Parse()
myconf.Init(configPath, &app.ProxyMap)
defer mylog.Flush()
app.Run()
}