diff options
Diffstat (limited to 'api_client.go')
| -rw-r--r-- | api_client.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/api_client.go b/api_client.go index e2c8bb8..77fce29 100644 --- a/api_client.go +++ b/api_client.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: 2020 M. Shulhan <ms@kilabit.info> // SPDX-License-Identifier: GPL-3.0-or-later -package kamusd +package kamusku import ( "encoding/json" @@ -11,7 +11,7 @@ import ( "net/url" "strings" - "git.sr.ht/~shulhan/kamusku" + "git.sr.ht/~shulhan/kbbi" ) // apiClient is client that connect to cached server API. @@ -38,7 +38,7 @@ func newAPIClient(url string) (client *apiClient) { } // Lookup the definition of words through server API. -func (client *apiClient) Lookup(words []string) (res kamusku.LookupResponse, err error) { +func (client *apiClient) Lookup(words []string) (res kbbi.LookupResponse, err error) { if len(words) == 0 { return nil, nil } @@ -80,7 +80,7 @@ func (client *apiClient) Lookup(words []string) (res kamusku.LookupResponse, err } // ListRootWords list all of the root words in dictionary. -func (client *apiClient) ListRootWords() (res kamusku.Words, err error) { +func (client *apiClient) ListRootWords() (res kbbi.Words, err error) { //TODO: return cached list. return res, nil } |
