File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 7
7
}
8
8
9
9
DNSLookupResponse struct {
10
- Records []DNSRecord
10
+ Records []DNSRecord `json:"records"`
11
11
}
12
12
13
13
DNSRecord struct {
Original file line number Diff line number Diff line change 6
6
}
7
7
8
8
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"`
15
15
}
16
16
17
17
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"`
22
22
}
23
23
)
24
24
You can’t perform that action at this time.
0 commit comments