diff options
Diffstat (limited to 'word.go')
| -rw-r--r-- | word.go | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -11,14 +11,16 @@ import ( // Word store the single root word and its definitions. type Word struct { - Root string `json:"dasar,omitempty"` // The root word - Definition []*WordDefinition `json:"definisi"` // The word definition. + err error + + Root string `json:"dasar,omitempty"` // The root word - // Message will contains the information when the word is not found or - // the word is informal (kata tidak baku). + // Message will contains the information when the word is not found + // or the word is informal (kata tidak baku). Message string `json:"pesan,omitempty"` - err error + // The word definition. + Definition []*WordDefinition `json:"definisi"` } // Err return an error from retrieving definition. |
