code: func loadConfig(configName string) (map[string]string, error) {
  	klog.V(4).Info(log("loading config file %s", configName))
  	file, err := os.Open(configName)
  	if err != nil {
  		klog.Error(log("failed to open config file %s: %v", configName, err))
  		return nil, err
  	}
  	defer file.Close()
  	data := map[string]string{}
  	if err := gob.NewDecoder(file).Decode(&data); err != nil {
  		klog.Error(log("failed to parse config data %s: %v", configName, err))
  		return nil, err
  	}
  	applyConfigDefaults(data)
  	if err := validateConfigs(data); err != nil {
  		klog.Error(log("failed to load ConfigMap %s: %v", err))
  		return nil, err
  	}
  
  	return data, nil
  }
docs: // loadConfig loads configuration data from a file on disk