mapserver/params/params.go

23 lines
330 B
Go
Raw Normal View History

2019-01-04 10:41:01 +03:00
package params
import (
"flag"
"fmt"
)
type ParamsType struct {
worlddir string
}
var params ParamsType
func Params() ParamsType {
return params
}
func Parse(){
params := ParamsType{}
flag.StringVar(&(params.worlddir), "worlddir", "./", "world directory")
flag.Parse()
fmt.Println("World dir is: ", params.worlddir)
}