Changed slices to maps in app, channel

This commit is contained in:
claudemiro
2015-01-12 21:41:22 -03:00
parent e2412827cf
commit 387a2ae28d
6 changed files with 73 additions and 52 deletions
+3 -2
View File
@@ -15,9 +15,10 @@ type ConfigFile struct {
// Error for App not found
var AppNotFoundError = errors.New("App not found")
func (c *ConfigFile) Initialize() {
// Initialize Apps
func (c *ConfigFile) Init() {
for _, app := range c.Apps {
app.Subscribers = make(map[string]*Subscriber)
app.Init()
}
}