| 1 | package xmlgen |
| 2 | |
| 3 | type Type struct { |
| 4 | Name string |
| 5 | Doc string |
| 6 | Fields []*Field |
| 7 | } |
| 8 | type Field struct { |
| 9 | Name string |
| 10 | Doc string |
| 11 | Default string |
| 12 | Required bool |
| 13 | Type *TypeInfo |
| 14 | StructTag string |
| 15 | Annotations interface{} |
| 16 | } |
| 17 | type Annotation interface { |
| 18 | Name() string |
| 19 | } |
| 20 | type TypeInfo struct { |
| 21 | Type string |
| 22 | } |
| 23 | |
| 24 | func (ti *TypeInfo) String() string { |
| 25 | return ti.Type |
| 26 | } |