(f Field)
| 79 | } |
| 80 | |
| 81 | func (d *Document) AddField(f Field) *Document { |
| 82 | switch f := f.(type) { |
| 83 | case *CompositeField: |
| 84 | d.CompositeFields = append(d.CompositeFields, f) |
| 85 | default: |
| 86 | d.Fields = append(d.Fields, f) |
| 87 | } |
| 88 | return d |
| 89 | } |
| 90 | |
| 91 | func (d *Document) GoString() string { |
| 92 | fields := "" |
no outgoing calls