code: func parseCfg(configPath string, defLbAlgorithm string, sslCert string, sslCaCert string) *loadBalancerConfig {
  	jsonBlob, err := ioutil.ReadFile(configPath)
  	if err != nil {
  		glog.Fatalf("Could not parse lb config: %v", err)
  	}
  	var cfg loadBalancerConfig
  	err = json.Unmarshal(jsonBlob, &cfg)
  	if err != nil {
  		glog.Fatalf("Unable to unmarshal json blob: %v", string(jsonBlob))
  	}
  	cfg.sslCert = sslCert
  	cfg.sslCaCert = sslCaCert
  	cfg.lbDefAlgorithm = defLbAlgorithm
  	glog.Infof("Creating new loadbalancer: %+v", cfg)
  	return &cfg
  }
docs: // parseCfg parses the given configuration file.
  // cmd line params take precedence over config directives.