aboutsummaryrefslogtreecommitdiff
path: root/word.go
diff options
context:
space:
mode:
Diffstat (limited to 'word.go')
-rw-r--r--word.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/word.go b/word.go
index bad564e..ecbef63 100644
--- a/word.go
+++ b/word.go
@@ -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.