Skip to content

Commit 66300da

Browse files
committed
adjust comments
1 parent 8137247 commit 66300da

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

newsbox/newsbox.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ import (
1414

1515
// Analysis represents an analysis of title, content and domain.
1616
type Analysis struct {
17-
// Title is the response object for the title analysis
17+
// Title is the response object for the title analysis.
1818
Title Title `json:"title"`
19-
// Content is the response object for the content analysis
19+
// Content is the response object for the content analysis.
2020
Content Content `json:"content"`
21-
// Domain is the response object for the domain analysis
21+
// Domain is the response object for the domain analysis.
2222
Domain Domain `json:"domain"`
2323
}
2424

25+
// Title is the response object for the title analysis.
2526
type Title struct {
2627
// Decision is the string representing the decision could be bias/unsure/impartial
2728
Decision string `json:"decision,omitempty"`
@@ -31,6 +32,7 @@ type Title struct {
3132
Entities []Entity `json:"entities,omitempty"`
3233
}
3334

35+
// Content is the response object for the content analysis.
3436
type Content struct {
3537
// Decision is the string representing the decision could be bias/unsure/impartial
3638
Decision string `json:"decision,omitempty"`
@@ -42,6 +44,7 @@ type Content struct {
4244
Keywords []Keyword `json:"keywords"`
4345
}
4446

47+
// Domain is the response object for the domain analysis.
4548
type Domain struct {
4649
// Domain is the domain extracted from the URL
4750
Domain string `json:"domain,omitempty"`

0 commit comments

Comments
 (0)