We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 788cdfe commit c64c2fcCopy full SHA for c64c2fc
datamuse.go
@@ -12,14 +12,17 @@ type Datamuse struct {
12
apiURL *url.URL
13
}
14
15
-// Results represent a list of Datamuse's results.
16
-type Results []struct {
+// Results represent a single Datamuse results.
+type Result struct {
17
Word string `json:"word"`
18
Score int `json:"score"`
19
SyllablesCount uint `json:"numSyllables,omitempty"`
20
Tags []string `json:"tags,omitempty"`
21
22
23
+// Results represent a list of Datamuse results.
24
+type Results []Result
25
+
26
// New create a new Datamuse instance.
27
func New() *Datamuse {
28
u, _ := url.Parse("https://api.datamuse.com")
0 commit comments