code: func GetConf(filename string, configuration interface{}) (err error) {
  
  	configValue := reflect.ValueOf(configuration)
  	if typ := configValue.Type(); typ.Kind() != reflect.Ptr || typ.Elem().Kind() != reflect.Struct {
  		return fmt.Errorf("configuration should be a pointer to a struct type")
  	}
  
  	err = getFromYAML(filename, configuration)
  	if err == nil {
  		getFromEnvVariables(configuration)
  	}
  
  	return
  }
docs: // GetConf aggregates all the JSON and enviornment variable values
  // and puts them into the passed interface.