Housekeeping
This commit is contained in:
4
main.go
4
main.go
@@ -96,7 +96,7 @@ func ParseFile(filename string) (*Class, error) {
|
||||
if class.Length() == 0 {
|
||||
return nil, fmt.Errorf("no class found")
|
||||
}
|
||||
res.ClassName = class.Text()
|
||||
res.ClassName = strings.TrimSpace(class.Text())
|
||||
|
||||
codeblocks := doc.Find("div.floatright > div.codecontainer")
|
||||
if codeblocks.Length() == 0 {
|
||||
@@ -156,7 +156,7 @@ func ParseFile(filename string) (*Class, error) {
|
||||
res.Methods = append(res.Methods, method)
|
||||
})
|
||||
|
||||
spew.Dump(res)
|
||||
// spew.Dump(res)
|
||||
|
||||
return &res, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user