func (p *ThriftFlumeEvent) ReadField1(iprot thrift.TProtocol) error { _, _, size, err := iprot.ReadMapBegin() if err != nil { return fmt.Errorf("error reading map begin: %s", err) } tMap := make(map[string]string, size) p.Headers = tMap for i := 0; i < size; i++ { var _key0 string if v, err := iprot.ReadString(); err != nil { return fmt.Errorf("error reading field 0: %s", err) } else { _key0 = v } var _val1 string if v, err := iprot.ReadString(); err != nil { return fmt.Errorf("error reading field 0: %s", err) } else { _val1 = v } p.Headers[_key0] = _val1 } if err := iprot.ReadMapEnd(); err != nil { return fmt.Errorf("error reading map end: %s", err) } return nil }