Implement parsing read only from properties
This commit is contained in:
6
class.go
6
class.go
@@ -289,6 +289,12 @@ func parseField(s *goquery.Selection) (Field, error) {
|
|||||||
}
|
}
|
||||||
res.Type = MapType(CleanUp(typeElement.Text()))
|
res.Type = MapType(CleanUp(typeElement.Text()))
|
||||||
|
|
||||||
|
readonlyElement := s.Find("td[align='right']")
|
||||||
|
if readonlyElement.Length() != 0 {
|
||||||
|
// return res, fmt.Errorf("no readonly found")
|
||||||
|
res.Comment = CleanUp(readonlyElement.Text())
|
||||||
|
}
|
||||||
|
|
||||||
comments := s.ChildrenFiltered("div")
|
comments := s.ChildrenFiltered("div")
|
||||||
if comments.Length() == 0 {
|
if comments.Length() == 0 {
|
||||||
return res, fmt.Errorf("no comments found")
|
return res, fmt.Errorf("no comments found")
|
||||||
|
|||||||
Reference in New Issue
Block a user