Simversity/gottp — pull request #1 by meson10 (2014-12-13 17:02:10+00:00)
Title: Conf has moved to a sub package

This is a backward incompatible change. But the way configuration was
supplied was really shabby.
gottp exposes two methods MakeServer & DefaultServer which does not
load any configuration.
Make Server now accepts a configurer interface which can be used for
custom .ini and configuration loading.
A bare minimum overriding configuration would look like:
type config struct {
Gottp conf.GottpSettings
Hello struct {
World string
}
}

func (self *config) MakeConfig(configPath string) {
if configPath != "" {
conf.MakeConfig(configPath, self)
}
}

func (self *config) GetGottpConfig() *conf.GottpSettings {
return &self.Gottp
}