Skip to content

Commit

Permalink
Add LoadData func
Browse files Browse the repository at this point in the history
  • Loading branch information
leetaifook committed Dec 25, 2012
1 parent c17cb85 commit d2885a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (c *Config) load(data []byte) {
}

func (c *Config) LoadData(data string) {
c.load([]byte(data))
c.load([]byte("{"+data+"}"))
}

func (c *Config) Load(configDir string) {
Expand Down

0 comments on commit d2885a5

Please sign in to comment.