Skip to content

Commit a440512

Browse files
committed
Adding comments to exposed methods.
1 parent bff4f99 commit a440512

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

product.go

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type Product struct {
1717
Reviews []Review
1818
}
1919

20+
// GetReviews gets the product's top reviews from amazon product page
2021
func (product *Product) GetReviews() {
2122
now := time.Now().UTC()
2223
resp, err := soup.Get(product.Link)

review.go

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ type Review struct {
99
Content string
1010
}
1111

12+
// ParseReviews parses the HTML content
1213
func (review *Review) ParseReviews(raw soup.Root) error {
1314
contentHolder := raw.Find("div", "class", "a-expander-content")
1415

0 commit comments

Comments
 (0)