Documentation ¶
Index ¶
Constants ¶
View Source
const ( // default watcher check time inc DEFAULT_Update_Check_Time = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
goconfig manage
func (*Config) Reg ¶
register an config file
name: config name path: config file path need_update: is need to upadte when file changed
func (*Config) RegNotifyChan ¶
register a channel to get update notify for what config is changed, if "./info.json" named "info" changed, the notify_chan will recv "info"
Click to show internal directories.
Click to hide internal directories.