diff options
| author | Shulhan <ms@kilabit.info> | 2024-04-17 23:51:53 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-04-18 00:41:07 +0700 |
| commit | a28f1684d9b427149f7a8f03f865bdf57eafc08e (patch) | |
| tree | a9b9244afedef99490d453672dc8b56e662f90bf /client.go | |
| parent | 51d14a2686c8ec0dbd876312dd76eec54df0d617 (diff) | |
| download | kamusku-a28f1684d9b427149f7a8f03f865bdf57eafc08e.tar.xz | |
all: rename the module to "kamusku"
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() } |
