Documentation ¶
Overview ¶
Package watchconfig watches for config file changes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigFile ¶
type ConfigFile struct { ConfigFilename string // contains filtered or unexported fields }
func (ConfigFile) WatchConfig ¶
func (cf ConfigFile) WatchConfig(onChange func(*fsnotify.Watcher, chan interface{})) error
WatchConfig will watch the config file and call onChange if the file contents change
Click to show internal directories.
Click to hide internal directories.