Not impl endpoints

This commit is contained in:
bel
2020-04-12 16:56:14 +00:00
parent 79600941be
commit 0b4ecd1916
23 changed files with 213 additions and 0 deletions

23
config/config.go Normal file
View File

@@ -0,0 +1,23 @@
package config
import (
"fmt"
"local/args"
)
var (
Port string
)
func init() {
New()
}
func New() {
as := args.NewArgSet()
as.Append(args.INT, "p", "port to listen on", 52222)
if err := as.Parse(); err != nil {
panic(err)
}
Port = fmt.Sprintf(":%d", as.GetInt("p"))
}