18 lines
424 B
Go
Executable File
18 lines
424 B
Go
Executable File
package main
|
|
|
|
import "local/args"
|
|
|
|
func config() *args.ArgSet {
|
|
as := args.NewArgSet()
|
|
|
|
as.Append(args.INT, "p", "port to listen on", "58080")
|
|
as.Append(args.STRING, "d", "root dir to serve static", "./public")
|
|
as.Append(args.STRING, "crt", "path to crt", "./testdata/scratch.crt")
|
|
as.Append(args.STRING, "key", "path to key", "./testdata/scratch.key")
|
|
|
|
if err := as.Parse(); err != nil {
|
|
panic(err)
|
|
}
|
|
return as
|
|
}
|