aboutsummaryrefslogtreecommitdiff
path: root/kata.go
diff options
context:
space:
mode:
Diffstat (limited to 'kata.go')
-rw-r--r--kata.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/kata.go b/kata.go
index 85ecb82..dc19bcc 100644
--- a/kata.go
+++ b/kata.go
@@ -21,10 +21,14 @@ func (kata *Kata) Err() error {
// Kata store the single root word and its definitions.
//
type Kata struct {
- Dasar string `json:"dasar"`
+ Dasar string `json:"dasar,omitempty"`
Definisi []*DefinisiKata `json:"definisi"`
- Pesan string `json:"pesan"`
- err error
+
+ // Pesan will contains the message when the word is not found or the
+ // word is informal (kata tidak baku).
+ Pesan string `json:"pesan,omitempty"`
+
+ err error
}
//