code: func (f *Function) Open(environment string) error {
  	f.defaults()
  
  	f.Log = f.Log.WithFields(log.Fields{
  		"function": f.Name,
  		"env":      environment,
  	})
  
  	f.Log.Debug("open")
  
  	if err := f.loadConfig(environment); err != nil {
  		return errors.Wrap(err, "loading config")
  	}
  
  	if err := f.hookOpen(); err != nil {
  		return errors.Wrap(err, "open hook")
  	}
  
  	if err := validator.Validate(&f.Config); err != nil {
  		return errors.Wrap(err, "validating")
  	}
  
  	ignoreFile, err := utils.ReadIgnoreFile(f.Path)
  	if err != nil {
  		return errors.Wrap(err, "reading ignore file")
  	}
  
  	f.IgnoreFile = append(f.IgnoreFile, []byte("\n")...)
  	f.IgnoreFile = append(f.IgnoreFile, ignoreFile...)
  
  	return nil
  }
docs: // Open the function.json file and prime the config.