GetAppConfig gets the remote config and save it to the path, also return the content.
(filename string)
| 92 | |
| 93 | // GetAppConfig gets the remote config and save it to the path, also return the content. |
| 94 | func (c *RConf) GetAppConfig(filename string) (config string, err error) { |
| 95 | info := configf.ConfigInfo{ |
| 96 | Appname: c.app, |
| 97 | Servername: "", |
| 98 | Filename: filename, |
| 99 | } |
| 100 | return c.getConfig(info) |
| 101 | } |
| 102 | |
| 103 | // GetConfig gets the remote config and save it to the path, also return the content. |
| 104 | func (c *RConf) GetConfig(filename string) (config string, err error) { |