code: func GetConfig(fileName string) (*NetworkConfig, error) {
  	if fileName == "" {
  		return nil, errors.New("filename cannot be empty")
  	}
  
  	data, err := ioutil.ReadFile(fileName)
  	if err != nil {
  		return nil, errors.Wrap(err, "error reading connection profile")
  	}
  
  	configData := string(data)
  	config := &NetworkConfig{}
  	err = yaml.Unmarshal([]byte(configData), &config)
  	if err != nil {
  		return nil, errors.Wrap(err, "error unmarshaling YAML")
  	}
  
  	return config, nil
  }
docs: // GetConfig unmarshals the provided connection profile into a network
  // configuration struct