code: func (y *YAMLLoader) Load(s interface{}) error {
  	var r io.Reader
  
  	if y.Reader != nil {
  		r = y.Reader
  	} else if y.Path != "" {
  		file, err := getConfig(y.Path)
  		if err != nil {
  			return err
  		}
  		defer file.Close()
  		r = file
  	} else {
  		return ErrSourceNotSet
  	}
  
  	data, err := ioutil.ReadAll(r)
  	if err != nil {
  		return err
  	}
  
  	return yaml.Unmarshal(data, s)
  }
docs: // Load loads the source into the config defined by struct s.
  // Defaults to using the Reader if provided, otherwise tries to read from the
  // file