// Loads the existing config and decides if a reload is required
Loads the existing config and decides if a reload is required
// Loads the existing config and decides if a reload is required
func isReloadRequired(configPath string, newContent string) (bool, error) {
	currentContent, err := ioutil.ReadFile(configPath)
	if err == nil {
		return newContent != string(currentContent), nil
	} else if os.IsNotExist(err) {
		return true, nil
	}
	return false, err 
}
func isReloadRequired ( configPath string , newContent string ) ( bool , error ) { currentContent , err := ioutil . ReadFile ( configPath ) if err == nil { return newContent != string ( currentContent ) , nil } else if os . IsNotExist ( err ) { return true , nil } return false , err }
Loads the existing config and decides if a reload is required
Loads the existing config and decides if a reload is required
// An error here means that the template may not exist, in which case we simply continue // Returning false here as is default value for bool