Not necessary export conf.

This commit is contained in:
claudemiro
2015-01-31 15:18:38 -03:00
parent 201cba86a9
commit 846231f5f3
7 changed files with 16 additions and 19 deletions
+4 -4
View File
@@ -11,7 +11,7 @@ import (
)
// Conf holds the global configuration state
var Conf configFile
var conf configFile
// Start Parse the configuration file and starts the ipe server
func Start(configfile string) error {
@@ -21,14 +21,14 @@ func Start(configfile string) error {
return err
}
if err := json.Unmarshal(file, &Conf); err != nil {
if err := json.Unmarshal(file, &conf); err != nil {
return err
}
Conf.Init()
conf.Init()
router := newRouter()
if err := http.ListenAndServe(Conf.Host, router); err != nil {
if err := http.ListenAndServe(conf.Host, router); err != nil {
return err
}