diff --git a/main.go b/main.go index 6679ae7..9d6b01e 100644 --- a/main.go +++ b/main.go @@ -4,10 +4,10 @@ import ( "mapserver/params" ) -func main(){ +func main() { params.Parse() p := params.Params() - if (p.Help){ + if p.Help { return } -} \ No newline at end of file +} diff --git a/params/params.go b/params/params.go index 93c6aed..191d672 100644 --- a/params/params.go +++ b/params/params.go @@ -6,8 +6,8 @@ import ( type ParamsType struct { Worlddir string - Port int - Help bool + Port int + Help bool } var params ParamsType @@ -16,7 +16,7 @@ func Params() ParamsType { return params } -func Parse(){ +func Parse() { params := ParamsType{} flag.StringVar(&(params.Worlddir), "worlddir", "./", "world directory") @@ -24,7 +24,7 @@ func Parse(){ flag.BoolVar(&(params.Help), "help", false, "Show help") flag.Parse() - if (params.Help) { + if params.Help { flag.PrintDefaults() } -} \ No newline at end of file +} diff --git a/util/worldconfig.go b/util/worldconfig.go deleted file mode 100644 index e69de29..0000000 diff --git a/worldconfig/parse.go b/worldconfig/parse.go index 3c6ffd6..b6f959e 100644 --- a/worldconfig/parse.go +++ b/worldconfig/parse.go @@ -1,7 +1,8 @@ +package workdconfig type WorldConfig struct { } func Parse(data []byte) WorldConfig { - -} \ No newline at end of file + +}