1
0
forked from MTSR/mapserver
This commit is contained in:
Thomas Rudin 2019-01-04 08:41:01 +01:00
parent 703abda2f0
commit e4ca34696e
4 changed files with 33 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
mapserver

9
main.go Normal file
View File

@ -0,0 +1,9 @@
package main
import (
"mapserver/params"
)
func main(){
params.Parse()
}

23
params/params.go Normal file
View File

@ -0,0 +1,23 @@
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)
}

0
util/worldconfig.go Normal file
View File