code: func (c *Config) ToFile(path string) error {
  	var w bytes.Buffer
  	e := toml.NewEncoder(&w)
  
  	t := new(tomlConfig)
  	t.fromConfig(c)
  
  	if err := e.Encode(*t); err != nil {
  		return err
  	}
  
  	return ioutil.WriteFile(path, w.Bytes(), 0644)
  }
docs: // ToFile outputs the given Config as a TOML-encoded file at the given path.
  // Returns errors encountered when generating or writing the file, or nil
  // otherwise.