diff options
Diffstat (limited to 'client.go')
| -rw-r--r-- | client.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,26 +1,26 @@ // SPDX-FileCopyrightText: 2020 M. Shulhan <ms@kilabit.info> // SPDX-License-Identifier: GPL-3.0-or-later -package kamusd +package kamusku import ( "fmt" - "git.sr.ht/~shulhan/kamusku" + "git.sr.ht/~shulhan/kbbi" ) // Client for dictionary API and official KBBI server. type Client struct { active activeClient api *apiClient - kbbic *kamusku.KbbiClient + kbbic *kbbi.Client } // NewClient create and initialize new client. func NewClient() (cl *Client, err error) { cl = &Client{} - cl.kbbic, err = kamusku.NewKbbiClient() + cl.kbbic, err = kbbi.NewClient() if err != nil { return nil, err } @@ -37,7 +37,7 @@ func NewClient() (cl *Client, err error) { } // Lookup lookup definition of words. -func (cl *Client) Lookup(words []string) (res kamusku.LookupResponse, err error) { +func (cl *Client) Lookup(words []string) (res kbbi.LookupResponse, err error) { if cl.active != nil { return cl.active.Lookup(words) } @@ -57,7 +57,7 @@ func (cl *Client) IsAuthenticated() bool { } // ListRootWords list all of the root words in dictionary. -func (cl *Client) ListRootWords() (res kamusku.Words, err error) { +func (cl *Client) ListRootWords() (res kbbi.Words, err error) { if cl.active != nil { return cl.active.ListRootWords() } |
