<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kamusku/client_test.go, branch main</title>
<subtitle>Open source HTTP API for Kamus Besar Bahasa Indonesia.</subtitle>
<id>http://git.kilabit.info/kamusku/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/kamusku/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/kamusku/'/>
<updated>2025-07-14T16:44:57Z</updated>
<entry>
<title>all: replace golangci-lint with internal linter</title>
<updated>2025-07-14T16:44:57Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2025-07-14T16:41:06Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/kamusku/commit/?id=7f0664344c75f502e7e8f1baf1e394bcbb5ca1ad'/>
<id>urn:sha1:7f0664344c75f502e7e8f1baf1e394bcbb5ca1ad</id>
<content type='text'>
The internal/cmd/gocheck use the go static analysis [Analyzer] that are
not included in the default go vet.

By using gocheck we found un-alignment and shadowing,

* client.go:18:13: struct with 24 pointer bytes could be 16
* dictionary.go:23:17: struct with 32 pointer bytes could be 16
* client_test.go:18:13: struct with 56 pointer bytes could be 48
* client_test.go:62:13: struct with 56 pointer bytes could be 48
* cmd/kamusku-telegram-bot/main.go:31:3: declaration of "err" shadows
  declaration at line 25
* kamusku_test.go:49:3: declaration of "err" shadows declaration at
  line 38

[Analyzer]: https://pkg.go.dev/golang.org/x/tools/go/analysis#hdr-Analyzer
</content>
</entry>
<entry>
<title>all: fix logging in client tests</title>
<updated>2025-01-01T20:17:26Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2025-01-01T20:17:26Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/kamusku/commit/?id=c51a2583a4f1c5103cfe139a2ca1981f95b11f20'/>
<id>urn:sha1:c51a2583a4f1c5103cfe139a2ca1981f95b11f20</id>
<content type='text'>
</content>
</entry>
<entry>
<title>all: remove unused Client and activeClient</title>
<updated>2024-04-17T17:41:07Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2024-04-17T17:33:01Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/kamusku/commit/?id=1a6d02199e0d44024648c5e805f8f10d7fc4b30a'/>
<id>urn:sha1:1a6d02199e0d44024648c5e805f8f10d7fc4b30a</id>
<content type='text'>
Since we now only have one client, apiClient, rename it to Client so it
can be used by other module or package later.
</content>
</entry>
<entry>
<title>all: refactoring Client</title>
<updated>2020-03-30T16:15:47Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2020-03-30T16:15:47Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/kamusku/commit/?id=84fdfdb6ae4175a125fc67a6aed377476d31ee0e'/>
<id>urn:sha1:84fdfdb6ae4175a125fc67a6aed377476d31ee0e</id>
<content type='text'>
The client will have two mode: direct or API.  The direct mode connect
to official KBBI website, request the word page, and parse the HTML to
get the definition.  The API mode connect to server API that provide
caching of dictionary.
</content>
</entry>
<entry>
<title>client: ganti parameter CariDefinisi menjadi slice of string</title>
<updated>2020-03-28T19:35:24Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2020-03-28T19:35:24Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/kamusku/commit/?id=81695a6ba830374fe1b7335d67ea6f22122af1f6'/>
<id>urn:sha1:81695a6ba830374fe1b7335d67ea6f22122af1f6</id>
<content type='text'>
Sebelumnya parameter untuk method CariDefinisi() hanya sebuah string.
Supaya dapat mencari lebih dari satu kata dalam satu kali panggil, maka
parameternya diganti menjadi slice of string.

Hal ini menyebabkan penambahan field internal "err" yang berisi kesalahan
pada saat pengambilan definisi yang dapat diperiksa dengan menggunakan
method Err().

Selain itu, pindahkan fungsi parseHTMLEntri menjadi method dari Kata.
</content>
</entry>
<entry>
<title>kbbi: tambah fitur pencarian definisi kata</title>
<updated>2020-03-15T18:17:35Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2020-03-05T17:57:07Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/kamusku/commit/?id=23a277ba6c3513346e29d39c5b2226219981fce0'/>
<id>urn:sha1:23a277ba6c3513346e29d39c5b2226219981fce0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>kbbi: The command line interface and Go library for kbbi.kemdikbud.go.id</title>
<updated>2020-03-02T16:42:00Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2020-02-27T18:07:17Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/kamusku/commit/?id=bf9240a2b91ec855a772c5fdc98ddd89ab28b6e5'/>
<id>urn:sha1:bf9240a2b91ec855a772c5fdc98ddd89ab28b6e5</id>
<content type='text'>
</content>
</entry>
</feed>
