(bts []byte)
| 160 | } |
| 161 | |
| 162 | func (e *encodeGen) appendraw(bts []byte) { |
| 163 | e.p.print("\nerr = en.Append(") |
| 164 | for i, b := range bts { |
| 165 | if i != 0 { |
| 166 | e.p.print(", ") |
| 167 | } |
| 168 | e.p.printf("0x%x", b) |
| 169 | } |
| 170 | e.p.print(")\nif err != nil { return }") |
| 171 | } |
| 172 | |
| 173 | func (e *encodeGen) structmap(s *Struct) { |
| 174 | oeIdentPrefix := randIdent() |