package gosseract /** * NOTE: * These structs are the very minimum implementation * only to satisfy test assertions. * TODO: Extend structs to cover main usecases. **/ // Page represents `
` type Page struct { ID string `xml:"id,attr"` Title string `xml:"title,attr"` Class string `xml:"class,attr"` Content Content `xml:"div"` } // Content represents `
` type Content struct { ID string `xml:"id,attr"` Title string `xml:"title,attr"` Class string `xml:"class,attr"` Par Par `xml:"p"` } // Par represents `

` type Par struct { ID string `xml:"id,attr"` Title string `xml:"title,attr"` Class string `xml:"class,attr"` Language string `xml:"lang,attr"` Lines []Line `xml:"span"` } // Line represents `` type Line struct { ID string `xml:"id,attr"` Title string `xml:"title,attr"` Class string `xml:"class,attr"` Words []Word `xml:"span"` } // Word represents `` type Word struct { ID string `xml:"id,attr"` Title string `xml:"title,attr"` Class string `xml:"class,attr"` Characters string `xml:",chardata"` }