diff options
| author | Shulhan <ms@kilabit.info> | 2024-04-06 17:44:13 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-04-06 17:44:13 +0700 |
| commit | 3245b00f0246f7f2f0afd8635cfd3ff9bf2cf584 (patch) | |
| tree | 286817224a5d72569e4db335578b3549f566deda /client.go | |
| parent | 6c7bfd42bc1128f5969e9e40b23d6b828601f7cb (diff) | |
| download | kamusku-3245b00f0246f7f2f0afd8635cfd3ff9bf2cf584.tar.xz | |
all: replace "share" module with "pakakeh.go"
The "share" module has been moved to new forge, SourceHut, with new name
"pakakeh.go".
Diffstat (limited to 'client.go')
| -rw-r--r-- | client.go | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -10,18 +10,14 @@ import ( "git.sr.ht/~shulhan/kamusku" ) -// // Client for dictionary API and official KBBI server. -// type Client struct { active activeClient api *apiClient kbbic *kamusku.KbbiClient } -// // NewClient create and initialize new client. -// func NewClient() (cl *Client, err error) { cl = &Client{} @@ -41,9 +37,7 @@ func NewClient() (cl *Client, err error) { return cl, nil } -// // Lookup lookup definition of words. -// func (cl *Client) Lookup(words []string) (res kamusku.LookupResponse, err error) { if cl.active != nil { return cl.active.Lookup(words) @@ -57,17 +51,13 @@ func (cl *Client) Lookup(words []string) (res kamusku.LookupResponse, err error) return res, nil } -// // IsAuthenticated will return true if client has logged in to KBBI official // server. -// func (cl *Client) IsAuthenticated() bool { return cl.kbbic.IsAuthenticated() } -// // ListRootWords list all of the root words in dictionary. -// func (cl *Client) ListRootWords() (res kamusku.Words, err error) { if cl.active != nil { return cl.active.ListRootWords() @@ -81,10 +71,8 @@ func (cl *Client) ListRootWords() (res kamusku.Words, err error) { return res, nil } -// // Login authenticate the client using username and password to official KBBI // server. -// func (cl *Client) Login(user, pass string) (err error) { err = cl.kbbic.Login(user, pass) if err != nil { |
