// Close implements io.Closer.
Close implements io.Closer.
// Close implements io . Closer .
func (w *mapWriter) Close() error {
	w.mu.Lock()
	if w.mu.dest != nil {
		w.mu.dest[w.name] = w.buf.Bytes()
	}
	w.mu.Unlock()
	return nil
}
func ( w * mapWriter ) Close ( ) error { w . mu . Lock ( ) if w . mu . dest != nil { w . mu . dest [ w . name ] = w . buf . Bytes ( ) } w . mu . Unlock ( ) return nil }
Close implements io.Closer.
Close implements io . Closer .