Skip to content

Commit d1988b5

Browse files
committed
Bumped v0.12.1
Signed-off-by: Vishal Rana <[email protected]>
1 parent ecc0b7e commit d1988b5

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

dns.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type (
77
}
88

99
DNSLookupResponse struct {
10-
Records []DNSRecord
10+
Records []DNSRecord `json:"records"`
1111
}
1212

1313
DNSRecord struct {

word.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ type (
66
}
77

88
WordLookupResponse struct {
9-
Pronunciation []string
10-
Rhymes []string
11-
Noun []*WordLookupResult
12-
Verb []*WordLookupResult
13-
Adverb []*WordLookupResult
14-
Adjective []*WordLookupResult
9+
Pronunciation []string `json:"pronunciation"`
10+
Rhymes []string `json:"rhymes"`
11+
Nouns []*WordLookupResult `json:"nouns"`
12+
Verbs []*WordLookupResult `json:"verbs"`
13+
Adverbs []*WordLookupResult `json:"adverbs"`
14+
Adjectives []*WordLookupResult `json:"adjectives"`
1515
}
1616

1717
WordLookupResult struct {
18-
Definition string
19-
Synonyms []string
20-
Antonyms []string
21-
Examples []string
18+
Definition string `json:"definition"`
19+
Synonyms []string `json:"synonyms"`
20+
Antonyms []string `json:"antonyms"`
21+
Examples []string `json:"examples"`
2222
}
2323
)
2424

0 commit comments

Comments
 (0)