code: func (e *Encoder) Encode(cfg *Config) error {
  	for _, s := range cfg.Sections {
  		if err := e.encodeSection(s); err != nil {
  			return err
  		}
  	}
  
  	return nil
  }
docs: // Encode writes the config in git config format to the stream of the encoder.